1
0
Fork 0
mirror of https://codeberg.org/polarisfm/youtube-dl.git synced 2024-12-26 17:46:45 +00:00

[YoutubeDL] pep8: use 'k not in' instead of 'not k in'

This commit is contained in:
Jaime Marquínez Ferrándiz 2015-04-30 20:18:42 +02:00
parent 4070b458ec
commit df8301fef5

View file

@ -1339,7 +1339,7 @@ class YoutubeDL(object):
self.to_screen('[info] Writing video description metadata as JSON to: ' + infofn) self.to_screen('[info] Writing video description metadata as JSON to: ' + infofn)
filtered_info_dict = dict( filtered_info_dict = dict(
(k, v) for k, v in info_dict.items() (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: try:
write_json_file(filtered_info_dict, infofn) write_json_file(filtered_info_dict, infofn)
except (OSError, IOError): except (OSError, IOError):