Revision: 5084 Author: filnik Date: 2008-02-26 16:43:49 +0000 (Tue, 26 Feb 2008)
Log Message: ----------- revert, nick is right.
Modified Paths: -------------- trunk/pywikipedia/blockpageschecker.py
Modified: trunk/pywikipedia/blockpageschecker.py =================================================================== --- trunk/pywikipedia/blockpageschecker.py 2008-02-26 16:36:10 UTC (rev 5083) +++ trunk/pywikipedia/blockpageschecker.py 2008-02-26 16:43:49 UTC (rev 5084) @@ -241,7 +241,6 @@ TemplateInThePage = understandBlock(text, TTP, TSP, TSMP, TTMP) # Only to see if the text is the same or not... oldtext = text - if editRestriction == 'sysop': if TemplateInThePage[0] == 'sysop-total' and TTP != None: wikipedia.output(u'The page is protected to the sysop, skipping...') @@ -276,10 +275,9 @@ for replaceToPerform in TTR: text = re.sub('(?:<noinclude>|)%s(?:</noinclude>|)' % replaceToPerform, '', text) if oldtext != text: - # Ok, asking if the change has to be performed and do it. - if always == True: - wikipedia.output(u"\n\n>>> \03{lightpurple}%s\03{default} <<<" % page.title()) - wikipedia.showDiff(oldtext, text) + # Ok, asking if the change has to be performed and do it if yes. + wikipedia.output(u"\n\n>>> \03{lightpurple}%s\03{default} <<<" % page.title()) + wikipedia.showDiff(oldtext, text) choice = '' while 1: if not always: