diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2012-11-28 00:19:24 +0100 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2012-11-28 00:19:24 +0100 |
commit | f660c89d51c56cb6f14151c06cfd0af41b7eb00b (patch) | |
tree | cd68598198976ff8c1a74e49204a363f5a05617d /youtube_dl | |
parent | 73dce4b2e4cb6eea951dbd682a92ad7508c957b0 (diff) |
Use list comprehension instead of map
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |