aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRicardo Garcia <[email protected]>2008-07-25 14:00:02 +0200
committerRicardo Garcia <[email protected]>2010-10-31 11:23:31 +0100
commit97accc0ecea6f6c14ec4151e8dd403c33e0ee980 (patch)
treeade98a73e5aaee017349bacfc1388dc6c23e7bff
parent76a7f364004fba520f21987128ba0a5a7c6e66e6 (diff)
downloadyoutube-dl-97accc0ecea6f6c14ec4151e8dd403c33e0ee980.tar.gz
youtube-dl-97accc0ecea6f6c14ec4151e8dd403c33e0ee980.zip
Simplify a statement
-rwxr-xr-xyoutube-dl5
1 files changed, 1 insertions, 4 deletions
diff --git a/youtube-dl b/youtube-dl
index f89c544cc..7527a4704 100755
--- a/youtube-dl
+++ b/youtube-dl
@@ -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):