]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[extractor/common] Simplify _get_netrc_login_info and carry long lines
authorSergey M․ <dstftw@gmail.com>
Thu, 15 Sep 2016 15:35:12 +0000 (22:35 +0700)
committerSergey M․ <dstftw@gmail.com>
Thu, 15 Sep 2016 15:35:12 +0000 (22:35 +0700)
youtube_dl/extractor/common.py

index 95ea3fca5da50861d9633a2e5dd0c0702f429796..4f738b9fcf4d3cbfd553b1faaa8bced4e0acb5a3 100644 (file)
@@ -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):
         """