mirror of
https://github.com/python/cpython.git
synced 2025-10-13 18:33:34 +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')
|
||||
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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue