Last modified: 2014-03-09 11:22:40 UTC
Originally from: http://sourceforge.net/p/pywikipediabot/bugs/1063/ Reported by: nakor-wikipedia Created on: 2009-10-31 20:53:12 Subject: Issue in userlib.py Original description: userlib.contributions\(\) changed the format it outputs. Please revert to the previous format %Y-%m-%dT%H:%M:%SZ . The new format should be proposed as an option. Just changing the format without compatibility breaks existing scripts.
Below is the patch for fixing this issue: Index: userlib.py =================================================================== \--- userlib.py \(revision 7576\) +++ userlib.py \(working copy\) @@ -249,7 +249,7 @@ for c in result\['query'\]\['usercontribs'\]: yield \(wikipedia.Page\(self.site\(\), c\['title'\], defaultNamespace=c\['ns'\]\), c\['revid'\], \- wikipedia.parsetime2stamp\(c\['timestamp'\]\), \+ c\['timestamp'\], c\['comment'\] \) nbresults += 1
Here is the patch for fixing this issue. Please commit it. Index: userlib.py =================================================================== \--- userlib.py \(revision 7869\) +++ userlib.py \(working copy\) @@ -223,7 +223,7 @@ for c in result\['query'\]\['usercontribs'\]: yield \(wikipedia.Page\(self.site\(\), c\['title'\], defaultNamespace=c\['ns'\]\), c\['revid'\], \- wikipedia.parsetime2stamp\(c\['timestamp'\]\), \+ c\['timestamp'\], c\['comment'\] \) nbresults += 1
I was able to reproduce