[lazy_extractors] Fix suitable and add flake8 test

This commit is contained in:
pukkandan committed 2021-08-23 01:04:29 +05:30
1 parent 4dfbf8696b
commit 3fb4e21b38
6 files changed
+9 -8

No files matched your search

-4
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__)