mirror of
https://github.com/python/cpython.git
synced 2025-09-27 10:50:04 +00:00
Move open outside try/finally
This commit is contained in:
parent
99081238e9
commit
1891cff587
1 changed files with 1 additions and 1 deletions
|
@ -398,8 +398,8 @@ def parse(file):
|
||||||
scanner = ASDLScanner()
|
scanner = ASDLScanner()
|
||||||
parser = ASDLParser()
|
parser = ASDLParser()
|
||||||
|
|
||||||
|
f = open(file)
|
||||||
try:
|
try:
|
||||||
f = open(file)
|
|
||||||
buf = f.read()
|
buf = f.read()
|
||||||
finally:
|
finally:
|
||||||
f.close()
|
f.close()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue