http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10893
Revision: 10893 Author: xqt Date: 2013-01-12 13:25:12 +0000 (Sat, 12 Jan 2013) Log Message: ----------- remove obsolete stuff
Modified Paths: -------------- trunk/pywikipedia/version.py
Modified: trunk/pywikipedia/version.py =================================================================== --- trunk/pywikipedia/version.py 2013-01-12 11:53:40 UTC (rev 10892) +++ trunk/pywikipedia/version.py 2013-01-12 13:25:12 UTC (rev 10893) @@ -3,7 +3,7 @@ # # (C) Merlijn 'valhallasw' van Deen, 2007-2008 # (C) xqt, 2010-2011 -# (C) Pywikipedia bot team, 2007-2011 +# (C) Pywikipedia bot team, 2007-2013 # # Distributed under the terms of the MIT license. # @@ -111,10 +111,6 @@ raise ParseError return rev
-## Simple version comparison -# -cmp_ver = lambda a, b, tol=1: {-1: '<', 0: '~', 1: '>'}[cmp((a-b)//tol, 0)] - if __name__ == '__main__': print 'Pywikipedia %s' % getversion() print 'Python %s' % sys.version