http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10018
Revision: 10018 Author: xqt Date: 2012-03-12 14:18:53 +0000 (Mon, 12 Mar 2012) Log Message: ----------- strip trailing whitespace
Modified Paths: -------------- trunk/pywikipedia/replace.py trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/replace.py =================================================================== --- trunk/pywikipedia/replace.py 2012-03-12 14:14:03 UTC (rev 10017) +++ trunk/pywikipedia/replace.py 2012-03-12 14:18:53 UTC (rev 10018) @@ -96,7 +96,7 @@ -fix:XYZ Perform one of the predefined replacements tasks, which are given in the dictionary 'fixes' defined inside the files fixes.py and user-fixes.py. - The -regex, -recursive and -nocase argument and given + The -regex, -recursive and -nocase argument and given replacements and exceptions will be ignored if you use -fix and they are present in the 'fixes' dictionary. Currently available predefined fixes are: @@ -345,7 +345,7 @@ # is on, and to display the number of edited articles otherwise. self.editcounter = 0 # A counter for saved exceptions - self.exceptcounter = 0 + self.exceptcounter = 0
def isTitleExcepted(self, title): """ @@ -478,7 +478,7 @@ if self.exctitles: choice = pywikibot.inputChoice( u'Do you want to accept these changes?', - ['Yes', 'No', 'no+eXcept', 'Edit', + ['Yes', 'No', 'no+eXcept', 'Edit', 'open in Browser', 'All', 'Quit'], ['y', 'N', 'x', 'e', 'b', 'a', 'q'], 'N') else:
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2012-03-12 14:14:03 UTC (rev 10017) +++ trunk/pywikipedia/wikipedia.py 2012-03-12 14:18:53 UTC (rev 10018) @@ -7615,7 +7615,7 @@ r = result[u'parse'][u'text'][u'*']
# disable/remove comments - r = pywikibot.removeDisabledParts(r, tags = ['comments']).strip() + r = pywikibot.removeDisabledParts(r, tags = ['comments']).strip()
# disable/remove ALL tags if not (keeptags == [u'*']): @@ -7768,7 +7768,7 @@ debug = True config.special_page_limit = 500 elif arg == '-simulate': - config.actions_to_block = ['edit', 'watch', 'move', 'delete', + config.actions_to_block = ['edit', 'watch', 'move', 'delete', 'undelete', 'protect'] else: # the argument is not global. Let the specific bot script care @@ -7835,7 +7835,7 @@
-verbose Have the bot provide additional output that may be -v useful in debugging. --debug +-debug
-cosmeticchanges Toggles the cosmetic_changes setting made in config.py or -cc user_config.py to its inverse and overrules it. All other @@ -8245,8 +8245,8 @@ Pywikibot has detected that you use this outdated version of Python: %s. We would like to hear your voice before ceasing support of this version. -Please update to \03{lightyellow}Python 2.7.2\03{default} if possible or visit -http://www.mediawiki.org/wiki/Pywikipediabot/Survey2012 to tell us why we +Please update to \03{lightyellow}Python 2.7.2\03{default} if possible or visit +http://www.mediawiki.org/wiki/Pywikipediabot/Survey2012 to tell us why we should support your version and to learn how to hide this message. After collecting opinions for a time we will decide and announce the deadline of deprecating use of old Python versions for Pywikipedia.