]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Make it at least legal grammar!
authorGuido van Rossum <guido@python.org>
Fri, 15 May 1992 15:40:30 +0000 (15:40 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 15 May 1992 15:40:30 +0000 (15:40 +0000)
Demo/stdwin/python.py

index e987eeec03420b7e4e0e40fc4a074e635ff8cf13..c43fd48c419d7c5d886816d511f1ec5637c7c063 100755 (executable)
@@ -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)