diff options
author | Filippo Valsorda <filippo.valsorda@gmail.com> | 2012-12-20 14:18:23 +0100 |
---|---|---|
committer | Filippo Valsorda <filippo.valsorda@gmail.com> | 2012-12-20 14:20:24 +0100 |
commit | 1a2c3c0f3ee8f91d650a2a252d2795ea88203ca0 (patch) | |
tree | 6a48ae4d58816f95390a0c952648804239ebaeea /youtube_dl/__init__.py | |
parent | 0eaf520d7758d57c61afe1832c1db9a4fb2ccc88 (diff) |
some py3 fixes, both needed and recommended; we should pass 2to3 as cleanly as possible now
Diffstat (limited to 'youtube_dl/__init__.py')
-rw-r--r-- | youtube_dl/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/__init__.py b/youtube_dl/__init__.py index efa8b813f..9b25ab3a2 100644 --- a/youtube_dl/__init__.py +++ b/youtube_dl/__init__.py @@ -453,8 +453,8 @@ def _real_main(): if opts.list_extractors: for ie in extractors: print(ie.IE_NAME + (' (CURRENTLY BROKEN)' if not ie._WORKING else '')) - matchedUrls = filter(lambda url: ie.suitable(url), all_urls) - all_urls = filter(lambda url: url not in matchedUrls, all_urls) + matchedUrls = [url for url in all_urls if ie.suitable(url)] + all_urls = [url for url in all_urls if url not in matchedUrls] for mu in matchedUrls: print(u' ' + mu) sys.exit(0) |