Kaydet (Commit) 1891cff5 authored tarafından Eli Bendersky's avatar Eli Bendersky

Move open outside try/finally

üst 99081238
......@@ -398,8 +398,8 @@ def parse(file):
scanner = ASDLScanner()
parser = ASDLParser()
f = open(file)
try:
f = open(file)
buf = f.read()
finally:
f.close()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment