XZise added a comment.
I tested Python 2.6.6 on a wiki without Bots and Nobots template and botMayEdit worked if you've installed the `future` package:
Python 2.6.6 (r266:84292, May 3 2015, 02:23:05) [GCC 4.8.3 20140911 (Red Hat 4.8.3-7)] on linux3 Type "help", "copyright", "credits" or "license" for more information.
import pywikibot s = pywikibot.Site() pywikibot.Page(s, 'Template:Bots').exists()
False
pywikibot.Page(s, 'Template:Nobots').exists()
False
pywikibot.Page(s, 'Main Page').botMayEdit()
True
So is this bug report actually about the fact that you need the `future` package in Python 2.6 (or that pywikibot needs `OrderedDict`)? Or did I misunderstand that update?
TASK DETAIL https://phabricator.wikimedia.org/T90156
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: XZise Cc: jayvdb, XZise, Aklapper, Multichill, pywikipedia-bugs