mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +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()
|
||||
parser = ASDLParser()
|
||||
|
||||
f = open(file)
|
||||
try:
|
||||
f = open(file)
|
||||
buf = f.read()
|
||||
finally:
|
||||
f.close()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue