From: Philipp Hagemeister Date: Tue, 27 Nov 2012 23:19:24 +0000 (+0100) Subject: Use list comprehension instead of map X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=f660c89d51c56cb6f14151c06cfd0af41b7eb00b;p=youtube-dl Use list comprehension instead of map --- diff --git a/youtube_dl/__init__.py b/youtube_dl/__init__.py index 0dc69556e..f2f238a4f 100644 --- a/youtube_dl/__init__.py +++ b/youtube_dl/__init__.py @@ -409,7 +409,7 @@ def _real_main(): except IOError: sys.exit(u'ERROR: batch file could not be read') all_urls = batchurls + args - all_urls = map(lambda url: url.strip(), all_urls) + all_urls = [url.strip() for url in all_urls] # General configuration cookie_processor = compat_urllib_request.HTTPCookieProcessor(jar)