http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9240
Revision: 9240 Author: xqt Date: 2011-05-11 17:11:11 +0000 (Wed, 11 May 2011) Log Message: ----------- Default namespace for removing categories; fix for bug #3159076
Modified Paths: -------------- trunk/pywikipedia/category.py
Modified: trunk/pywikipedia/category.py =================================================================== --- trunk/pywikipedia/category.py 2011-05-11 14:45:55 UTC (rev 9239) +++ trunk/pywikipedia/category.py 2011-05-11 17:11:11 UTC (rev 9240) @@ -935,7 +935,7 @@ def __init__(self, catTitle, batchMode = False, editSummary = '', useSummaryForDeletion = True, titleRegex = None, inPlace = False): self.editSummary = editSummary self.site = pywikibot.getSite() - self.cat = catlib.Category(self.site, catTitle) + self.cat = catlib.Category(self.site, 'Category:'+ catTitle) # get edit summary message self.useSummaryForDeletion = useSummaryForDeletion self.batchMode = batchMode