mirror of
https://github.com/l1ving/youtube-dl
synced 2024-11-25 21:12:52 +08:00
removing unused global modifier
This commit is contained in:
parent
5a33b73309
commit
3eec021a1f
@ -173,7 +173,6 @@ class FileDownloader(object):
|
|||||||
if not self.params.get('quiet', False):
|
if not self.params.get('quiet', False):
|
||||||
terminator = [u'\n', u''][skip_eol]
|
terminator = [u'\n', u''][skip_eol]
|
||||||
output = message + terminator
|
output = message + terminator
|
||||||
|
|
||||||
if 'b' not in self._screen_file.mode or sys.version_info[0] < 3: # Python 2 lies about the mode of sys.stdout/sys.stderr
|
if 'b' not in self._screen_file.mode or sys.version_info[0] < 3: # Python 2 lies about the mode of sys.stdout/sys.stderr
|
||||||
output = output.encode(preferredencoding(), 'ignore')
|
output = output.encode(preferredencoding(), 'ignore')
|
||||||
self._screen_file.write(output)
|
self._screen_file.write(output)
|
||||||
|
Loading…
Reference in New Issue
Block a user