Mercurial > cpython-lru_cache-weakref
diff Demo/stdwin/python.py @ 867:cb146aa987c9 legacy-trunk
Make it at least legal grammar!
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Fri, 15 May 1992 15:40:30 +0000 |
| parents | 8f7b31a8a678 |
| children | 56636395724d |
line wrap: on
line diff
--- a/Demo/stdwin/python.py Fri May 15 15:39:56 1992 +0000 +++ b/Demo/stdwin/python.py Fri May 15 15:40:30 1992 +0000 @@ -472,13 +472,14 @@ 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)
