Skip to content

Commit

Permalink
Move open outside try/finally
Browse files Browse the repository at this point in the history
  • Loading branch information
eliben committed Sep 26, 2013
1 parent 9908123 commit 1891cff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Parser/asdl.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,8 +398,8 @@ def parse(file):
scanner = ASDLScanner()
parser = ASDLParser()

f = open(file)
try:
f = open(file)
buf = f.read()
finally:
f.close()
Expand Down

0 comments on commit 1891cff

Please sign in to comment.