http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9211
Revision: 9211 Author: xqt Date: 2011-05-02 16:51:19 +0000 (Mon, 02 May 2011) Log Message: ----------- argument correction for s2.replace()ment in r6184 (fix for bug #3296020), update from trunk r9210
Modified Paths: -------------- branches/rewrite/pywikibot/textlib.py
Modified: branches/rewrite/pywikibot/textlib.py =================================================================== --- branches/rewrite/pywikibot/textlib.py 2011-05-02 16:45:58 UTC (rev 9210) +++ branches/rewrite/pywikibot/textlib.py 2011-05-02 16:51:19 UTC (rev 9211) @@ -7,7 +7,7 @@
""" # -# (C) Pywikipedia bot team, 2008-2010 +# (C) Pywikipedia bot team, 2008-2011 # # Distributed under the terms of the MIT license. # @@ -403,7 +403,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)
pywikipedia-svn@lists.wikimedia.org