Closes #3769
This commit is contained in:
pukkandan 2022-05-17 22:08:12 +05:30
parent 5792c950bf
commit 7896214c42
No known key found for this signature in database
GPG key ID: 7EEE9E1E817D0A39
3 changed files with 10 additions and 7 deletions

View file

@ -555,7 +555,7 @@ class YoutubeDL:
)
self._allow_colors = Namespace(**{
type_: not self.params.get('no_color') and supports_terminal_sequences(stream)
for type_, stream in self._out_files.items_ if type_ != 'console'
for type_, stream in self._out_files if type_ != 'console'
})
if sys.version_info < (3, 6):
@ -3611,7 +3611,7 @@ class YoutubeDL:
sys.getfilesystemencoding(),
self.get_encoding(),
', '.join(
f'{key} {get_encoding(stream)}' for key, stream in self._out_files.items_
f'{key} {get_encoding(stream)}' for key, stream in self._out_files
if stream is not None and key != 'console')
)