Revision: 6977 Author: nicdumz Date: 2009-06-21 10:46:10 +0000 (Sun, 21 Jun 2009)
Log Message: ----------- time -> ts to avoid naming conflicts
Modified Paths: -------------- trunk/pywikipedia/version.py
Modified: trunk/pywikipedia/version.py =================================================================== --- trunk/pywikipedia/version.py 2009-06-21 10:23:05 UTC (rev 6976) +++ trunk/pywikipedia/version.py 2009-06-21 10:46:10 UTC (rev 6977) @@ -37,9 +37,9 @@ cache = dict(tag='', rev='-1 (unknown)', date='0 (unknown)') return cache
- id, file, rev, date, time, author, dollar = version.split(' ') + id, file, rev, date, ts, author, dollar = version.split(' ') tag = '' - date = time.strptime('%sT%s' % (date, time), '%Y-%m-%dT%H:%M:%SZ') + date = time.strptime('%sT%s' % (date, ts), '%Y-%m-%dT%H:%M:%SZ') rev += ' (wikipedia.py)' datestring = time.strftime('%b %d %Y, %H:%M:%S', date) cache = dict(tag=tag, rev=rev, date=datestring)
pywikipedia-svn@lists.wikimedia.org