Added quit function.

This commit is contained in:
Jeremy Fincher 2003-05-27 20:03:37 +00:00
parent 5bc901e125
commit 1e910d3948
1 changed files with 3 additions and 0 deletions

View File

@ -59,3 +59,6 @@ def yn(prompt):
def ny(prompt):
return expect(prompt, ['n', 'y'])
def quit(prompt):
return anything(prompt) not in ('q', 'quit')