http://www.mediawiki.org/wiki/Special:Code/pywikipedia/8989
Revision: 8989 Author: xqt Date: 2011-02-20 12:06:09 +0000 (Sun, 20 Feb 2011) Log Message: ----------- follow-up fix for r8987, patch submitted by DrTrigon
Modified Paths: -------------- trunk/pywikipedia/botlist.py
Modified: trunk/pywikipedia/botlist.py =================================================================== --- trunk/pywikipedia/botlist.py 2011-02-20 12:02:19 UTC (rev 8988) +++ trunk/pywikipedia/botlist.py 2011-02-20 12:06:09 UTC (rev 8989) @@ -88,7 +88,7 @@ pywikibot.put_throttle() # It actually is a get, but a heavy one. m1 = True offset = '' - if site.versionnumber >= 17: + if site.versionnumber() >= 17: PATTERN = u'<li>(.*?) *((.*?),\s(.*?))(?:.*?)</li>' else: PATTERN = u'<li>(.*?) *((.*?),\s(.*?))</li>'
pywikipedia-svn@lists.wikimedia.org