[YoutubeDL] pep8: use 'k not in' instead of 'not k in'
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Thu, 30 Apr 2015 18:18:42 +0000 (20:18 +0200)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Thu, 30 Apr 2015 18:18:42 +0000 (20:18 +0200)
youtube_dl/YoutubeDL.py

index e747c6892dcb4bc712a112f2a439551f91e591be..584dbf8a6e1c8b686c223a46dce856801a2f6118 100755 (executable)
@@ -1339,7 +1339,7 @@ class YoutubeDL(object):
                 self.to_screen('[info] Writing video description metadata as JSON to: ' + infofn)
                 filtered_info_dict = dict(
                     (k, v) for k, v in info_dict.items()
-                    if not k in ['requested_formats', 'requested_subtitles'])
+                    if k not in ['requested_formats', 'requested_subtitles'])
                 try:
                     write_json_file(filtered_info_dict, infofn)
                 except (OSError, IOError):