make_valid_template = '''
@classmethod
def _make_valid_url(cls):
- return {!r}
+ return {valid_url!r}
'''
s += getsource(ie.suitable)
if hasattr(ie, '_make_valid_url'):
# search extractors
- s += make_valid_template.format(ie._make_valid_url())
+ s += make_valid_template.format(valid_url=ie._make_valid_url())
return s
names = []
names.append(name)
module_contents.append(
- '_ALL_CLASSES = [{}]'.format(', '.join(names)))
+ '_ALL_CLASSES = [{0}]'.format(', '.join(names)))
module_src = '\n'.join(module_contents)