mirror of
https://github.com/python/cpython.git
synced 2025-07-28 21:55:21 +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)
|
self.win.settitle(title)
|
||||||
inputwindows.insert(0, self.win)
|
inputwindows.insert(0, self.win)
|
||||||
try:
|
try:
|
||||||
mainloop.mainloop()
|
try:
|
||||||
except InputAvailable, (exc, val): # See do_exec above.
|
mainloop.mainloop()
|
||||||
if exc:
|
except InputAvailable, (exc, val): # See do_exec above.
|
||||||
raise exc, val
|
if exc:
|
||||||
if val[-1:] == '\n':
|
raise exc, val
|
||||||
val = val[:-1]
|
if val[-1:] == '\n':
|
||||||
return val
|
val = val[:-1]
|
||||||
|
return val
|
||||||
finally:
|
finally:
|
||||||
del inputwindows[0]
|
del inputwindows[0]
|
||||||
self.win.settitle(save_title)
|
self.win.settitle(save_title)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue