projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73dce4b
)
Use list comprehension instead of map
author
Philipp Hagemeister
<phihag@phihag.de>
Tue, 27 Nov 2012 23:19:24 +0000
(
00:19
+0100)
committer
Philipp Hagemeister
<phihag@phihag.de>
Tue, 27 Nov 2012 23:19:24 +0000
(
00:19
+0100)
youtube_dl/__init__.py
patch
|
blob
|
history
diff --git
a/youtube_dl/__init__.py
b/youtube_dl/__init__.py
index 0dc69556e74e513374b9f20b1157f6c5672bc1f9..f2f238a4fb39f360f001be6f5e023d2abd2fd9a5 100644
(file)
--- 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)