diff options
author | Guido van Rossum <guido@python.org> | 1992-05-15 15:40:30 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1992-05-15 15:40:30 (GMT) |
commit | cb4b2959f8f837019e81ebb0cf752655840262aa (patch) | |
tree | cc86ece80a14f820c7df8daa778510fd93eac553 | |
parent | f62e1dd0c4079ccae41bde431aba697e6873ba5d (diff) | |
download | cpython-cb4b2959f8f837019e81ebb0cf752655840262aa.zip cpython-cb4b2959f8f837019e81ebb0cf752655840262aa.tar.gz cpython-cb4b2959f8f837019e81ebb0cf752655840262aa.tar.bz2 |
Make it at least legal grammar!
-rwxr-xr-x | Demo/stdwin/python.py | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/Demo/stdwin/python.py b/Demo/stdwin/python.py index e987eee..c43fd48 100755 --- a/Demo/stdwin/python.py +++ b/Demo/stdwin/python.py @@ -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) |