http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10889
Revision: 10889 Author: drtrigon Date: 2013-01-11 23:13:04 +0000 (Fri, 11 Jan 2013) Log Message: ----------- bug fix; AttributeError: 'int' object has no attribute 'split'
Modified Paths: -------------- trunk/pywikipedia/version.py
Modified: trunk/pywikipedia/version.py =================================================================== --- trunk/pywikipedia/version.py 2013-01-11 22:29:36 UTC (rev 10888) +++ trunk/pywikipedia/version.py 2013-01-11 23:13:04 UTC (rev 10889) @@ -24,7 +24,7 @@ data = getversiondict() try: rev2 = int(getversion_onlinerepo()) - rev1 = int(data['rev'].split()[0]) + rev1 = int(str(data['rev']).split()[0]) data['cmp_ver'] = 'OUTDATED' if cmp_ver(rev1, rev2)=='<' else 'ok' except ParseError: data['cmp_ver'] = 'n/a'
pywikipedia-svn@lists.wikimedia.org