Revision: 7857 Author: xqt Date: 2010-01-05 17:43:13 +0000 (Tue, 05 Jan 2010)
Log Message: ----------- pagetext must not decodeEsperantoX() if loaded via API (bugfix for #2922896)
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2010-01-05 16:44:49 UTC (rev 7856) +++ trunk/pywikipedia/wikipedia.py 2010-01-05 17:43:13 UTC (rev 7857) @@ -784,8 +784,7 @@
pagetext = pageInfo['revisions'][0]['*'] pagetext = pagetext.rstrip() - if self.site().lang == 'eo': - pagetext = decodeEsperantoX(pagetext) + # pagetext must not decodeEsperantoX() if loaded via API m = self.site().redirectRegex().match(pagetext) if m: # page text matches the redirect pattern