http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9936
Revision: 9936 Author: xqt Date: 2012-02-26 10:58:21 +0000 (Sun, 26 Feb 2012) Log Message: ----------- remove obsolete import sys remove deprecated option -delsum
Modified Paths: -------------- branches/rewrite/scripts/category.py
Modified: branches/rewrite/scripts/category.py =================================================================== --- branches/rewrite/scripts/category.py 2012-02-26 09:10:47 UTC (rev 9935) +++ branches/rewrite/scripts/category.py 2012-02-26 10:58:21 UTC (rev 9936) @@ -81,7 +81,7 @@ # (C) leogregianin, 2004-2008 # (C) Cyde, 2006-2010 # (C) Anreas J Schwab, 2007 -# (C) Pywikipedia team, 2008-2009 +# (C) Pywikipedia team, 2008-2012 # __version__ = '$Id$' # @@ -92,7 +92,6 @@ import pywikibot from pywikibot import catlib, config, pagegenerators from pywikibot import i18n -import sys
# This is required for the text that is shown when you run this script # with the parameter -help. @@ -373,6 +372,7 @@
class CategoryMoveRobot: """Robot to move pages from one category to another.""" + def __init__(self, oldCatTitle, newCatTitle, batchMode=False, editSummary='', inPlace=False, moveCatPage=True, deleteEmptySourceCat=True, titleRegex=None, @@ -847,10 +847,6 @@ batchMode = True elif arg == '-inplace': inPlace = True - elif arg == '-delsum': - # This parameter is kept for historical reasons, - # as it was previously not the default option. - pass elif arg == '-nodelsum': useSummaryForDeletion = False elif arg == '-overwrite':
pywikipedia-svn@lists.wikimedia.org