From f660c89d51c56cb6f14151c06cfd0af41b7eb00b Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Wed, 28 Nov 2012 00:19:24 +0100 Subject: [PATCH] Use list comprehension instead of map --- youtube_dl/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)