]>
Raphaƫl G. Git Repositories - youtubedl/blob - devscripts/lazy_load_template.py
2 from __future__
import unicode_literals
7 class LazyLoadExtractor(object):
12 return cls
.__name
__[:-2]
14 def __new__(cls
, *args
, **kwargs
):
15 mod
= __import__(cls
._module
, fromlist
=(cls
.__name
__,))
16 real_cls
= getattr(mod
, cls
.__name
__)
17 instance
= real_cls
.__new
__(real_cls
)
18 instance
.__init
__(*args
, **kwargs
)