mirror of
https://github.com/python/cpython.git
synced 2025-07-28 05:34:31 +00:00
Make it at least legal grammar!
This commit is contained in:
parent
f62e1dd0c4
commit
cb4b2959f8
1 changed files with 8 additions and 7 deletions
|
@ -472,13 +472,14 @@ class Input:
|
|||
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…
Add table
Add a link
Reference in a new issue