Migrate ComicFury to single-class module.

This commit is contained in:
Tobias Gruetzmacher 2016-05-22 23:31:53 +02:00
parent 1834bf179f
commit c62a7283a2
2 changed files with 1047 additions and 3992 deletions

File diff suppressed because it is too large Load diff

View file

@ -168,13 +168,12 @@ class ComicFuryUpdater(ComicListUpdater):
langopt = ''
if lang != "english":
if lang in self.langmap:
langopt = '\n lang = %r' % self.langmap[lang]
langopt = ", '%s'" % self.langmap[lang]
else:
print("WARNING:", "Unknown language:", lang)
sub = urlsplit(url).hostname.split('.', 1)[0]
return u"class CF%s(_ComicFury):\n sub = %r%s" % (name, sub,
langopt)
return u"cls('%s', '%s'%s)" % (name, sub, langopt)
if __name__ == '__main__':