aboutsummaryrefslogtreecommitdiff
path: root/devscripts/lazy_load_template.py
AgeCommit message (Collapse)Author
2016-10-03Unify coding cookieDéstin Reed
2016-04-08lazy extractors: Initialize the real info extractorJaime Marquínez Ferrándiz
According to the docs '__init__' is only called automatically if '__new__' returns an instance of the original class.
2016-04-08lazy extractors: Style fixesJaime Marquínez Ferrándiz
* Sort extractors alphabetically * Add newlines when needed (youtube_dl/extractors/lazy_extractors.py pass the flake8 test now)
2016-04-08lazy extractors: specify the encodingJaime Marquínez Ferrándiz
When building with python3 the unicode characters are not escaped, python2 needs to know the encoding.
2016-04-08Add experimental support for lazy loading the info extractorsJaime Marquínez Ferrándiz
'make lazy-extractors' creates the youtube_dl/extractor/lazy_extractors.py (imported by youtube_dl/extractor/__init__.py), which contains simplified classes that only have the 'suitable' class method and that load the appropiate class with the '__new__' method when a instance is created.