1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-12-22 08:47:41 +00:00

Simplify a statement

This commit is contained in:
Ricardo Garcia 2008-07-25 14:00:02 +02:00
parent 76a7f36400
commit 97accc0ece

View file

@ -179,10 +179,7 @@ class FileDownloader(object):
def to_stdout(self, message, skip_eol=False):
"""Print message to stdout if not in quiet mode."""
if not self._params.get('quiet', False):
if skip_eol:
print message,
else:
print message
print u'%s%s' % (message, [u'\n', u''][skip_eol]),
sys.stdout.flush()
def to_stderr(self, message):