Revision: 7886 Author: xqt Date: 2010-01-20 06:31:50 +0000 (Wed, 20 Jan 2010)
Log Message: ----------- Bugfix for #2935366
Modified Paths: -------------- trunk/pywikipedia/xmlreader.py
Modified: trunk/pywikipedia/xmlreader.py =================================================================== --- trunk/pywikipedia/xmlreader.py 2010-01-19 07:31:56 UTC (rev 7885) +++ trunk/pywikipedia/xmlreader.py 2010-01-20 06:31:50 UTC (rev 7886) @@ -337,15 +337,18 @@ text = revision.findtext("{%s}text" % self.uri) editRestriction, moveRestriction \ = parseRestrictions(self.restrictions) - return XmlEntry(title=self.title, id=self.pageid, text=text or u'', - username=username, ipedit=bool(ipeditor), - timestamp=timestamp, - editRestriction=editRestriction, - moveRestriction=moveRestriction, - revisionid=revisionid, - comment=comment, - redirect=self.isredirect - ) + return XmlEntry(title=self.title, + id=self.pageid, + text=text or u'', + username=username or u'', #username might be deleted + ipedit=bool(ipeditor), + timestamp=timestamp, + editRestriction=editRestriction, + moveRestriction=moveRestriction, + revisionid=revisionid, + comment=comment, + redirect=self.isredirect + )
def regex_parse(self): """