mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-05 02:32:44 +01:00
[YoutubeDL] pep8: use 'k not in' instead of 'not k in'
This commit is contained in:
parent
4070b458ec
commit
df8301fef5
@ -1339,7 +1339,7 @@ def process_info(self, info_dict):
|
||||
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):
|
||||
|
Loading…
Reference in New Issue
Block a user