https://bugzilla.wikimedia.org/show_bug.cgi?id=72127
Bug ID: 72127 Summary: MySQLPageGenerator syntax error Product: Pywikibot Version: core (2.0) Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: jayvdb@gmail.com Web browser: --- Mobile Platform: ---
MySQLPageGenerator tries to compare 'site' against pywikibot.site.Site, which doesnt exist. Bug introduced in Aug 2013 (git 2e35403), and pywikibot.site.Site didnt exist then either.
Welcome to the Pywikibot interactive shell!
import pywikibot.pagegenerators gen = pywikibot.pagegenerators.MySQLPageGenerator('SELECT * FROM DUAL') p = next(gen)
Traceback (most recent call last): File "<console>", line 1, in <module> File ".../pywikibot/pagegenerators.py", line 1451, in MySQLPageGenerator if isinstance(site, pywikibot.site.Site): AttributeError: 'module' object has no attribute 'Site'