Revision: 5387 Author: wikipedian Date: 2008-05-16 18:15:36 +0000 (Fri, 16 May 2008)
Log Message: ----------- Another important bugfix.
There was a whitespace problem in the XML parser. A newline and some spaces were added to the revision ID number, and since a change to the MediaWiki Flagged Revisions extension, this whitespace is a problem. Reviewed articles on dewiki had to be reviewed again after a bot made a mistake.
If you have a bot that makes changes on dewiki, please update immediately, as many users are complaining about the bug.
Modified Paths: -------------- trunk/pywikipedia/xmlreader.py
Modified: trunk/pywikipedia/xmlreader.py =================================================================== --- trunk/pywikipedia/xmlreader.py 2008-05-16 15:59:09 UTC (rev 5386) +++ trunk/pywikipedia/xmlreader.py 2008-05-16 18:15:36 UTC (rev 5387) @@ -131,8 +131,8 @@ self.username = u'' self.ipedit = True elif name == 'restrictions': - self.destination = 'restrictions' - self.restrictions = u'' + self.destination = 'restrictions' + self.restrictions = u'' elif name == 'title': self.destination = 'title' self.title=u'' @@ -180,6 +180,9 @@ elif name == 'siteinfo': self.headercallback(self.header) self.header = None + # Characters between this closing tag and the next opening tag is + # ignored, it's just whitespace for XML formatting. + self.destination = None
def characters(self, data): if self.destination == 'text':