Make it at least legal grammar!

This commit is contained in:
Guido van Rossum 1992-05-15 15:40:30 +00:00
parent f62e1dd0c4
commit cb4b2959f8
1 changed files with 8 additions and 7 deletions

View File

@ -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)