From 97accc0ecea6f6c14ec4151e8dd403c33e0ee980 Mon Sep 17 00:00:00 2001 From: Ricardo Garcia Date: Fri, 25 Jul 2008 14:00:02 +0200 Subject: [PATCH] Simplify a statement --- youtube-dl | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/youtube-dl b/youtube-dl index f89c544cc6..7527a47044 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):