mirror of https://github.com/python/cpython
Move open outside try/finally
This commit is contained in:
parent
99081238e9
commit
1891cff587
|
@ -398,8 +398,8 @@ def parse(file):
|
|||
scanner = ASDLScanner()
|
||||
parser = ASDLParser()
|
||||
|
||||
f = open(file)
|
||||
try:
|
||||
f = open(file)
|
||||
buf = f.read()
|
||||
finally:
|
||||
f.close()
|
||||
|
|
Loading…
Reference in New Issue