http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9210
Revision: 9210 Author: xqt Date: 2011-05-02 16:45:58 +0000 (Mon, 02 May 2011) Log Message: ----------- argument correction for s2.replace()ment in r6184 (fix for bug #3296020)
Modified Paths: -------------- trunk/pywikipedia/pywikibot/textlib.py
Modified: trunk/pywikipedia/pywikibot/textlib.py =================================================================== --- trunk/pywikipedia/pywikibot/textlib.py 2011-05-02 03:56:15 UTC (rev 9209) +++ trunk/pywikipedia/pywikibot/textlib.py 2011-05-02 16:45:58 UTC (rev 9210) @@ -426,7 +426,7 @@ elif site.language() in site.family.categories_last: cats = getCategoryLinks(s2, site = site) s2 = removeCategoryLinksAndSeparator( - s2.replace(marker, '', cseparatorstripped).strip(), + s2.replace(marker, cseparatorstripped).strip(), site) + separator + s newtext = replaceCategoryLinks(s2, cats, site=site, addOnly=True)