Unmerged except and finally clauses

This commit is contained in:
Guido van Rossum 1992-05-06 11:39:49 +00:00
parent 8899a9ca40
commit 9ea0fbc6de
2 changed files with 5 additions and 5 deletions

View 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()

View 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