]> git.bitcoin.ninja Git - youtube-dl/commitdiff
Use list comprehension instead of map
authorPhilipp Hagemeister <phihag@phihag.de>
Tue, 27 Nov 2012 23:19:24 +0000 (00:19 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Tue, 27 Nov 2012 23:19:24 +0000 (00:19 +0100)
youtube_dl/__init__.py

index 0dc69556e74e513374b9f20b1157f6c5672bc1f9..f2f238a4fb39f360f001be6f5e023d2abd2fd9a5 100644 (file)
@@ -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)