summaryrefslogtreecommitdiffstats
path: root/Parser
diff options
context:
space:
mode:
authorEli Bendersky <eliben@gmail.com>2013-09-26 16:35:39 (GMT)
committerEli Bendersky <eliben@gmail.com>2013-09-26 16:35:39 (GMT)
commit1891cff587b348faea027e8836e5e6c30e19213c (patch)
tree5f31abf600959371179fc3ffccfb903e3e5415a6 /Parser
parent99081238e91261c74a1534988e250235f72d8d0f (diff)
downloadcpython-1891cff587b348faea027e8836e5e6c30e19213c.zip
cpython-1891cff587b348faea027e8836e5e6c30e19213c.tar.gz
cpython-1891cff587b348faea027e8836e5e6c30e19213c.tar.bz2
Move open outside try/finally
Diffstat (limited to 'Parser')
-rw-r--r--Parser/asdl.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Parser/asdl.py b/Parser/asdl.py
index be02d9c..fc1b16c 100644
--- a/Parser/asdl.py
+++ b/Parser/asdl.py
@@ -398,8 +398,8 @@ def parse(file):
scanner = ASDLScanner()
parser = ASDLParser()
+ f = open(file)
try:
- f = open(file)
buf = f.read()
finally:
f.close()