From a865564713d00ee4460ef0857e382852066e75bb Mon Sep 17 00:00:00 2001 From: emijrp Date: Thu, 14 Jul 2011 20:01:34 +0000 Subject: [PATCH] .lower() git-svn-id: https://wikiteam.googlecode.com/svn/trunk@216 31edc4fc-5e31-b4c4-d58b-c8bc928bcb95 --- dumpgenerator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dumpgenerator.py b/dumpgenerator.py index d4bdc9e..ef0752c 100644 --- a/dumpgenerator.py +++ b/dumpgenerator.py @@ -813,7 +813,7 @@ def main(params=[]): while not other['resume'] and os.path.isdir(config['path']): #do not enter if resume is request from begining print '\nWarning!: "%s" path exists' % (config['path']) reply = '' - while reply not in ['yes', 'y', 'no', 'n']: + while reply.lower() not in ['yes', 'y', 'no', 'n']: reply = raw_input('There is a dump in "%s", probably incomplete.\nIf you choose resume, to avoid conflicts, the parameters you have chosen in the current session will be ignored\nand the parameters available in "%s/%s" will be loaded.\nDo you want to resume ([yes, y], [no, n])? ' % (config['path'], config['path'], configfilename)) if reply.lower() in ['yes', 'y']: if not os.path.isfile('%s/%s' % (config['path'], configfilename)):