Revision: 7033 Author: alexsh Date: 2009-07-09 02:32:41 +0000 (Thu, 09 Jul 2009)
Log Message: ----------- Fix:UnicodeDecodeError when using verbose mode in other scripts (locale string cannot decode to utf8 in asian language OS)
Modified Paths: -------------- trunk/pywikipedia/version.py
Modified: trunk/pywikipedia/version.py =================================================================== --- trunk/pywikipedia/version.py 2009-07-08 03:18:37 UTC (rev 7032) +++ trunk/pywikipedia/version.py 2009-07-09 02:32:41 UTC (rev 7033) @@ -41,7 +41,7 @@ tag = '' 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) + datestring = time.strftime('%Y/%m/%d, %H:%M:%S', date) cache = dict(tag=tag, rev=rev, date=datestring) return cache