]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Unmerged except and finally clauses
authorGuido van Rossum <guido@python.org>
Wed, 6 May 1992 11:39:49 +0000 (11:39 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 6 May 1992 11:39:49 +0000 (11:39 +0000)
Lib/test/test_exceptions.py
Lib/test/test_opcodes.py

index 7ee6e219f239c962c5fac961604e104fdf128001..cf7c50dbe09cc3ebba631f35edecd2092e4106b4 100644 (file)
@@ -19,10 +19,11 @@ fp.close()
 fp = open(TESTFN, 'r')
 savestdin = sys.stdin
 try:
-       sys.stdin = fp
-       x = raw_input()
-except EOFError:
-       pass
+       try:
+               sys.stdin = fp
+               x = raw_input()
+       except EOFError:
+               pass
 finally:
        sys.stdin = savestdin
        fp.close()
index 41f1b8fe0fc3e3a52a57a21fe59dcc60fcefcc89..4cc6ee91184df15615c15b4672b019c623b7387f 100644 (file)
@@ -14,7 +14,6 @@ for i in range(10):
        except NameError: pass
        except ZeroDivisionError: pass
        except TypeError: pass
-       finally: pass
        try: pass
        except: pass
        try: pass