mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-03-09 12:50:23 -05:00
fix for older python versions
This commit is contained in:
parent
68644c3ca6
commit
8b8d6c51fb
1 changed files with 2 additions and 1 deletions
|
@ -75,7 +75,8 @@ def build_ies(ies, bases, attr_base):
|
|||
if ie in ies:
|
||||
names.append(ie.__name__)
|
||||
|
||||
yield f'\n_CLASS_LOOKUP = {{ {", ".join(f"'{name}': {name}" for name in names)} }}'
|
||||
class_lookup_contents = ', '.join(f"\'{name}\': {name}" for name in names)
|
||||
yield f'\n_CLASS_LOOKUP = {{ {class_lookup_contents} }}'
|
||||
|
||||
|
||||
def sort_ies(ies, ignored_bases):
|
||||
|
|
Loading…
Reference in a new issue