Revision: 4217 Author: russblau Date: 2007-09-08 19:51:11 +0000 (Sat, 08 Sep 2007)
Log Message: ----------- Don't use put_async in automatic mode; it doesn't help. Also, no need to catch exceptions from put_async.
Modified Paths: -------------- trunk/pywikipedia/replace.py
Modified: trunk/pywikipedia/replace.py =================================================================== --- trunk/pywikipedia/replace.py 2007-09-08 18:26:01 UTC (rev 4216) +++ trunk/pywikipedia/replace.py 2007-09-08 19:51:11 UTC (rev 4217) @@ -258,9 +258,11 @@ choice = wikipedia.inputChoice(u'Do you want to accept these changes?', ['Yes', 'No', 'All'], ['y', 'N', 'a'], 'N') if choice in ['a', 'A']: self.acceptall = True - if self.acceptall or choice in ['y', 'Y']: + if choice in ['y', 'Y']: + page.put_async(new_text) + elif self.acceptall: try: - page.put_async(new_text) + page.put(new_text) except wikipedia.EditConflict: wikipedia.output(u'Skipping %s because of edit conflict' % (page.title(),)) except wikipedia.SpamfilterError, e: