Revision: 6976 Author: nicdumz Date: 2009-06-21 10:23:05 +0000 (Sun, 21 Jun 2009)
Log Message: ----------- coding style tweaks
Modified Paths: -------------- trunk/pywikipedia/version.py
Modified: trunk/pywikipedia/version.py =================================================================== --- trunk/pywikipedia/version.py 2009-06-21 10:18:11 UTC (rev 6975) +++ trunk/pywikipedia/version.py 2009-06-21 10:23:05 UTC (rev 6976) @@ -37,12 +37,12 @@ cache = dict(tag='', rev='-1 (unknown)', date='0 (unknown)') return cache
- d = version.split(' ') + id, file, rev, date, time, author, dollar = version.split(' ') tag = '' - date = time.strptime('T'.join(d[3:5]), '%Y-%m-%dT%H:%M:%SZ') - rev = d[2] + ' (wikipedia.py)' + date = time.strptime('%sT%s' % (date, time), '%Y-%m-%dT%H:%M:%SZ') + rev += ' (wikipedia.py)' datestring = time.strftime('%b %d %Y, %H:%M:%S', date) - cache = {'tag': tag, 'rev': rev, 'date': datestring} + cache = dict(tag=tag, rev=rev, date=datestring) return cache
def getversion_svn():
pywikipedia-svn@lists.wikimedia.org