http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10890
Revision: 10890 Author: drtrigon Date: 2013-01-12 11:37:01 +0000 (Sat, 12 Jan 2013) Log Message: ----------- improvement; follow-up to r10889 in order to simplify the code
Modified Paths: -------------- trunk/pywikipedia/version.py
Modified: trunk/pywikipedia/version.py =================================================================== --- trunk/pywikipedia/version.py 2013-01-11 23:13:04 UTC (rev 10889) +++ trunk/pywikipedia/version.py 2013-01-12 11:37:01 UTC (rev 10890) @@ -25,7 +25,7 @@ try: rev2 = int(getversion_onlinerepo()) rev1 = int(str(data['rev']).split()[0]) - data['cmp_ver'] = 'OUTDATED' if cmp_ver(rev1, rev2)=='<' else 'ok' + data['cmp_ver'] = 'OUTDATED' if rev1 < rev2 else 'ok' except ParseError: data['cmp_ver'] = 'n/a' return '%(tag)s (r%(rev)s, %(date)s, %(cmp_ver)s)' % data
pywikipedia-svn@lists.wikimedia.org