]> jfr.im git - yt-dlp.git/blobdiff - youtube_dl/__init__.py
some py3 fixes, both needed and recommended; we should pass 2to3 as cleanly as possib...
[yt-dlp.git] / youtube_dl / __init__.py
index efa8b813f8ea0b96b65b971c83e2a8b376e78607..9b25ab3a2b32ae4150d47df9df471bebc21f46ff 100644 (file)
@@ -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)