Revision: 8648 Author: xqt Date: 2010-10-14 06:35:49 +0000 (Thu, 14 Oct 2010)
Log Message: ----------- bugfix for section decoding error coming with r8539
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2010-10-13 04:47:57 UTC (rev 8647) +++ trunk/pywikipedia/wikipedia.py 2010-10-14 06:35:49 UTC (rev 8648) @@ -464,14 +464,14 @@ colon = ":" if self._site.family != getSite().family \ and self._site.family.name != self._site.lang: - return u'[[%s%s:%s:%s]]' % (colon, self._site.family.name, + title = u'[[%s%s:%s:%s]]' % (colon, self._site.family.name, self._site.lang, title) else: - return u'[[%s%s:%s]]' % (colon, self._site.lang, title) + title = u'[[%s%s:%s]]' % (colon, self._site.lang, title) elif textlink and (self.isImage() or self.isCategory()): - return u'[[:%s]]' % title + title = u'[[:%s]]' % title else: - return u'[[%s]]' % title + title = u'[[%s]]' % title if decode or asLink: begin = title.find('#') if begin != -1:
pywikipedia-svn@lists.wikimedia.org