Migrate GoComics to single-class module.

This commit is contained in:
Tobias Gruetzmacher 2016-05-23 00:01:10 +02:00
parent 2c8e57bdea
commit 807bee6342
2 changed files with 879 additions and 3456 deletions

File diff suppressed because it is too large Load diff

View file

@ -52,8 +52,8 @@ class GoComicsUpdater(ComicListUpdater):
self.handle_url('http://www.gocomics.com/explore/sherpa_list')
def get_entry(self, name, url):
return u"class GC%s(_GoComics%s):\n path = %r" % (
name, 'Es' if 'espanol/' in url else '', url[1:])
langopt = ", 'es'" if 'espanol/' in url else ''
return u"cls('%s', '%s'%s)," % (name, url[1:], langopt)
if __name__ == '__main__':