This commit is contained in:
Eray Özkural
2005-07-11 00:12:13 +00:00
parent 2c7a6dba37
commit edb4071a6a
+2 -2
View File
@@ -31,9 +31,9 @@ class CLI:
while True: while True:
s = raw_input(msg + colorize('(yes/no)', 'red')) s = raw_input(msg + colorize('(yes/no)', 'red'))
if s.starts_with('y') or s.starts_with('Y'): if s.starts_with('y') or s.starts_with('Y'):
return true return True
if s.starts_with('n') or s.starts_with('N'): if s.starts_with('n') or s.starts_with('N'):
return false return False
class Progress: class Progress:
def __init__(self, totalsize): def __init__(self, totalsize):