http://www.mediawiki.org/wiki/Special:Code/pywikipedia/11377
Revision: 11377 Author: drtrigon Date: 2013-04-17 14:38:34 +0000 (Wed, 17 Apr 2013) Log Message: ----------- bug fix; for cleanup with unicode data ('?\195?\164'), follow-up to r11214 (and all before that)
Modified Paths: -------------- trunk/pywikipedia/sum_disc.py
Modified: trunk/pywikipedia/sum_disc.py =================================================================== --- trunk/pywikipedia/sum_disc.py 2013-04-17 09:40:00 UTC (rev 11376) +++ trunk/pywikipedia/sum_disc.py 2013-04-17 14:38:34 UTC (rev 11377) @@ -36,10 +36,6 @@ will cause no problem for the bot, because the entries are also written to the history.
-The following parameters are supported: - -¶ms; - All other parameters will be ignored.
Syntax example: @@ -1116,7 +1112,7 @@ for line in text.splitlines(): try: #date = time.strptime(u'abc', u'; %d. %B %Y') - date = time.strptime(line, str(self._param['parse_msg'][u'start'])) + date = time.strptime(line.encode('utf-8'), str(self._param['parse_msg'][u'start'])) #date = time.strptime(str(line), str(self._param['parse_msg'][u'start'])) date = datetime.datetime.fromtimestamp(time.mktime(date)) diff = (today - date).days
pywikipedia-svn@lists.wikimedia.org