correct method calls: lower, not tolower

--HG--
extra : convert_revision : svn%3A41726ec3-264d-0410-9c23-a9f1637257cc/trunk%40222
This commit is contained in:
adrian.sampson 2009-05-12 03:40:42 +00:00
parent f6b53142a9
commit 7aa8254ad9

View file

@ -69,9 +69,9 @@ def _input_yn(prompt):
"""
resp = raw_input(prompt)
while True:
if len(resp) == 0 or resp[0].tolower() == 'y':
if len(resp) == 0 or resp[0].lower() == 'y':
return True
elif len(resp) > 0 and resp[0].tolower() == 'n':
elif len(resp) > 0 and resp[0].lower() == 'n':
return False
resp = raw_input("Type 'y' or 'n': ")