summaryrefslogtreecommitdiffstats
path: root/Demo
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1992-05-15 15:40:30 (GMT)
committerGuido van Rossum <guido@python.org>1992-05-15 15:40:30 (GMT)
commitcb4b2959f8f837019e81ebb0cf752655840262aa (patch)
treecc86ece80a14f820c7df8daa778510fd93eac553 /Demo
parentf62e1dd0c4079ccae41bde431aba697e6873ba5d (diff)
downloadcpython-cb4b2959f8f837019e81ebb0cf752655840262aa.zip
cpython-cb4b2959f8f837019e81ebb0cf752655840262aa.tar.gz
cpython-cb4b2959f8f837019e81ebb0cf752655840262aa.tar.bz2
Make it at least legal grammar!
Diffstat (limited to 'Demo')
-rwxr-xr-xDemo/stdwin/python.py15
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)