1
0
mirror of https://github.com/yt-dlp/yt-dlp synced 2025-07-01 11:32:52 -05:00

[lazy_extractors] Fix suitable and add flake8 test

This commit is contained in:
pukkandan
2021-08-23 00:49:23 +05:30
parent 4dfbf8696b
commit 3fb4e21b38
6 changed files with 9 additions and 8 deletions

View File

@ -8,10 +8,6 @@ import re
class LazyLoadExtractor(object):
_module = None
@classmethod
def ie_key(cls):
return cls.__name__[:-2]
def __new__(cls, *args, **kwargs):
mod = __import__(cls._module, fromlist=(cls.__name__,))
real_cls = getattr(mod, cls.__name__)