Revision: 7899 Author: xqt Date: 2010-01-29 14:14:12 +0000 (Fri, 29 Jan 2010)
Log Message: ----------- bugfix for r7710 do not use inputChoice() if we need the numbers
Modified Paths: -------------- trunk/pywikipedia/category.py
Modified: trunk/pywikipedia/category.py =================================================================== --- trunk/pywikipedia/category.py 2010-01-29 13:52:47 UTC (rev 7898) +++ trunk/pywikipedia/category.py 2010-01-29 14:14:12 UTC (rev 7899) @@ -358,9 +358,7 @@ while answer not in ('y','n','a'): answer = pywikibot.inputChoice(u'%s'% (page.aslink()), ['Yes', 'No', 'All'],['y', 'n', 'a'], 'n') if answer == 'a': - confirm = '' - while confirm not in ('y','n'): - confirm = pywikibot.inputChoice(u"""\ + confirm = pywikibot.inputChoice(u"""\ This should be used if and only if you are sure that your links are correct! Are you sure?""", ['Yes', 'No'], ['y', 'n'], 'n') if confirm == 'n': @@ -741,7 +739,7 @@ flag = False while not flag: print '' - choice = pywikibot.inputChoice(u'Choice:', ['jump', 'skip', 'remove', 'print'], ['j', 's', 'r', '?'], 's') + choice = pywikibot.input(u'Choice:', ['jump', 'skip', 'remove', 'print'], ['j', 's', 'r', '?'], 's') if choice in ['s', 'S']: flag = True elif choice == '':
pywikipedia-svn@lists.wikimedia.org