http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10259
Revision: 10259 Author: xqt Date: 2012-05-27 18:15:12 +0000 (Sun, 27 May 2012) Log Message: ----------- bugfix for r10252: namespace must be detected by header.
Modified Paths: -------------- trunk/pywikipedia/xmlreader.py
Modified: trunk/pywikipedia/xmlreader.py =================================================================== --- trunk/pywikipedia/xmlreader.py 2012-05-27 10:12:41 UTC (rev 10258) +++ trunk/pywikipedia/xmlreader.py 2012-05-27 18:15:12 UTC (rev 10259) @@ -347,6 +347,7 @@
def _headers(self, elem): self.title = elem.findtext("{%s}title" % self.uri) + self.ns = elem.findtext("{%s}ns" % self.uri) self.pageid = elem.findtext("{%s}id" % self.uri) self.restrictions = elem.findtext("{%s}restrictions" % self.uri) self.isredirect = elem.findtext("{%s}redirect" % self.uri) is not None