http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10678
Revision: 10678 Author: xqt Date: 2012-11-08 13:34:47 +0000 (Thu, 08 Nov 2012) Log Message: ----------- fix for r10677
Modified Paths: -------------- branches/rewrite/pywikibot/bot.py
Modified: branches/rewrite/pywikibot/bot.py =================================================================== --- branches/rewrite/pywikibot/bot.py 2012-11-08 10:59:53 UTC (rev 10677) +++ branches/rewrite/pywikibot/bot.py 2012-11-08 13:34:47 UTC (rev 10678) @@ -483,7 +483,7 @@ cmd = arg[1:].split(':') if len(cmd) == 2 and len(cmd[1]) > 0 and \ hasattr(config, cmd[0]) and \ - type(getattr(config, cmd[0]) == int: + type(getattr(config, cmd[0])) == int: setattr(config, cmd[0], cmd[1]) # the argument is not global. Let the specific bot script care # about it.