mirror of https://github.com/python/cpython.git
Make it at least legal grammar!
This commit is contained in:
parent
f62e1dd0c4
commit
cb4b2959f8
|
@ -472,13 +472,14 @@ def raw_input(args):
|
|||
self.win.settitle(title)
|
||||
inputwindows.insert(0, self.win)
|
||||
try:
|
||||
mainloop.mainloop()
|
||||
except InputAvailable, (exc, val): # See do_exec above.
|
||||
if exc:
|
||||
raise exc, val
|
||||
if val[-1:] == '\n':
|
||||
val = val[:-1]
|
||||
return val
|
||||
try:
|
||||
mainloop.mainloop()
|
||||
except InputAvailable, (exc, val): # See do_exec above.
|
||||
if exc:
|
||||
raise exc, val
|
||||
if val[-1:] == '\n':
|
||||
val = val[:-1]
|
||||
return val
|
||||
finally:
|
||||
del inputwindows[0]
|
||||
self.win.settitle(save_title)
|
||||
|
|
Loading…
Reference in New Issue