Revision: 4618 Author: leogregianin Date: 2007-11-29 16:16:45 +0000 (Thu, 29 Nov 2007)
Log Message: ----------- +quit..
Modified Paths: -------------- trunk/pywikipedia/catall.py
Modified: trunk/pywikipedia/catall.py =================================================================== --- trunk/pywikipedia/catall.py 2007-11-29 16:16:13 UTC (rev 4617) +++ trunk/pywikipedia/catall.py 2007-11-29 16:16:45 UTC (rev 4618) @@ -45,6 +45,7 @@ print ("?: Give the text of the page with GUI.") print ("??: Give the text of the page in console.") print ("xx: if the first, remove all categories and add no new.") + print ("q: quit.") while flag == False: choice=wikipedia.input(u"?") if choice=="": @@ -62,6 +63,9 @@ elif choice=="xx" and chosen==[]: chosen = None flag=True + elif choice=="q": + print "quit..." + sys.exit() else: chosen.append(choice) return chosen