mirror of
https://github.com/python/cpython.git
synced 2025-10-14 10:53:40 +00:00
Unmerged except and finally clauses
This commit is contained in:
parent
8899a9ca40
commit
9ea0fbc6de
2 changed files with 5 additions and 5 deletions
|
@ -19,10 +19,11 @@ fp.close()
|
||||||
fp = open(TESTFN, 'r')
|
fp = open(TESTFN, 'r')
|
||||||
savestdin = sys.stdin
|
savestdin = sys.stdin
|
||||||
try:
|
try:
|
||||||
sys.stdin = fp
|
try:
|
||||||
x = raw_input()
|
sys.stdin = fp
|
||||||
except EOFError:
|
x = raw_input()
|
||||||
pass
|
except EOFError:
|
||||||
|
pass
|
||||||
finally:
|
finally:
|
||||||
sys.stdin = savestdin
|
sys.stdin = savestdin
|
||||||
fp.close()
|
fp.close()
|
||||||
|
|
|
@ -14,7 +14,6 @@ for i in range(10):
|
||||||
except NameError: pass
|
except NameError: pass
|
||||||
except ZeroDivisionError: pass
|
except ZeroDivisionError: pass
|
||||||
except TypeError: pass
|
except TypeError: pass
|
||||||
finally: pass
|
|
||||||
try: pass
|
try: pass
|
||||||
except: pass
|
except: pass
|
||||||
try: pass
|
try: pass
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue