mirror of
https://github.com/beetbox/beets.git
synced 2025-12-31 21:12:43 +01:00
correct method calls: lower, not tolower
--HG-- extra : convert_revision : svn%3A41726ec3-264d-0410-9c23-a9f1637257cc/trunk%40222
This commit is contained in:
parent
f6b53142a9
commit
7aa8254ad9
1 changed files with 2 additions and 2 deletions
|
|
@ -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': ")
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue