Move open outside try/finally

This commit is contained in:
Eli Bendersky 2013-09-26 09:35:39 -07:00
parent 99081238e9
commit 1891cff587
1 changed files with 1 additions and 1 deletions

View File

@ -398,8 +398,8 @@ def parse(file):
scanner = ASDLScanner()
parser = ASDLParser()
f = open(file)
try:
f = open(file)
buf = f.read()
finally:
f.close()