Update comments
This commit is contained in:
parent
2365a72d98
commit
a4a3c55c09
@ -145,12 +145,12 @@ class User(user.User):
|
|||||||
m = message,
|
m = message,
|
||||||
y = accept_text,
|
y = accept_text,
|
||||||
n = reject_text)
|
n = reject_text)
|
||||||
print (text, file = self._fileout) # TODO python3 add flush=True
|
print (text, file = self._fileout) # TODO: python 3.3 add flush=True
|
||||||
try:
|
try:
|
||||||
reply = self._input()
|
reply = self._input()
|
||||||
except EOFError:
|
except EOFError:
|
||||||
reply = ""
|
reply = ""
|
||||||
### Trun response into True/False:
|
### Turn response into True/False:
|
||||||
if reply == "":
|
if reply == "":
|
||||||
return default == accept_label
|
return default == accept_label
|
||||||
elif reply == accept_label:
|
elif reply == accept_label:
|
||||||
|
Loading…
Reference in New Issue
Block a user