mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-05-30 01:06:27 +02:00
[lazy_extractors] Fix suitable
and add flake8 test
This commit is contained in:
parent
4dfbf8696b
commit
3fb4e21b38
6 changed files with 9 additions and 8 deletions
|
@ -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__)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue