youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit dcce092e0aa92799f1e3a51ce5aae611af4d70d5
parent 32443dd346594d64b579af714f4828287492c464
Author: Sergey M․ <dstftw@gmail.com>
Date:   Thu, 15 Sep 2016 22:35:12 +0700

[extractor/common] Simplify _get_netrc_login_info and carry long lines

Diffstat:
Myoutube_dl/extractor/common.py | 8+++++---
1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py @@ -674,11 +674,13 @@ class InfoExtractor(object): username = info[0] password = info[2] else: - raise netrc.NetrcParseError('No authenticators for %s' % netrc_machine) + raise netrc.NetrcParseError( + 'No authenticators for %s' % netrc_machine) except (IOError, netrc.NetrcParseError) as err: - self._downloader.report_warning('parsing .netrc: %s' % error_to_compat_str(err)) + self._downloader.report_warning( + 'parsing .netrc: %s' % error_to_compat_str(err)) - return (username, password) + return username, password def _get_login_info(self, username_option='username', password_option='password', netrc_machine=None): """