Revision: 5670 Author: nicdumz Date: 2008-07-04 18:30:18 +0000 (Fri, 04 Jul 2008)
Log Message: ----------- Trying to address that eo: mess : removing encodeEsperantoX calls
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2008-07-04 18:23:14 UTC (rev 5669) +++ trunk/pywikipedia/wikipedia.py 2008-07-04 18:30:18 UTC (rev 5670) @@ -1254,10 +1254,6 @@ import watchlist watchArticle = watchlist.isWatched(self.title(), site = self.site()) newPage = not self.exists() - # if posting to an Esperanto wiki, we must e.g. write Bordeauxx instead - # of Bordeaux - if self.site().lang == 'eo': - newtext = encodeEsperantoX(newtext) return self._putPage(newtext, comment, watchArticle, minorEdit, newPage, self.site().getToken(sysop = sysop), sysop = sysop)
@@ -2853,9 +2849,6 @@ def getData(self): address = self.site.export_address() pagenames = [page.sectionFreeTitle() for page in self.pages] - # We need to use X convention for requested page titles. - if self.site.lang == 'eo': - pagenames = [encodeEsperantoX(pagetitle) for pagetitle in pagenames] pagenames = u'\r\n'.join(pagenames) if type(pagenames) is not unicode: output(u'Warning: xmlreader.WikipediaXMLHandler.getData() got non-unicode page names. Please report this.')