Browse Source

Use list comprehension instead of map

master
Philipp Hagemeister 12 years ago
parent
commit
f660c89d51
1 changed files with 1 additions and 1 deletions
  1. 2
      youtube_dl/__init__.py

2
youtube_dl/__init__.py

@ -409,7 +409,7 @@ def _real_main():
except IOError: except IOError:
sys.exit(u'ERROR: batch file could not be read') sys.exit(u'ERROR: batch file could not be read')
all_urls = batchurls + args all_urls = batchurls + args
all_urls = map(lambda url: url.strip(), all_urls)
all_urls = [url.strip() for url in all_urls]
# General configuration # General configuration
cookie_processor = compat_urllib_request.HTTPCookieProcessor(jar) cookie_processor = compat_urllib_request.HTTPCookieProcessor(jar)

Loading…
Cancel
Save