diff options
author | Eli Bendersky <eliben@gmail.com> | 2013-09-26 16:35:39 (GMT) |
---|---|---|
committer | Eli Bendersky <eliben@gmail.com> | 2013-09-26 16:35:39 (GMT) |
commit | 1891cff587b348faea027e8836e5e6c30e19213c (patch) | |
tree | 5f31abf600959371179fc3ffccfb903e3e5415a6 /Parser | |
parent | 99081238e91261c74a1534988e250235f72d8d0f (diff) | |
download | cpython-1891cff587b348faea027e8836e5e6c30e19213c.zip cpython-1891cff587b348faea027e8836e5e6c30e19213c.tar.gz cpython-1891cff587b348faea027e8836e5e6c30e19213c.tar.bz2 |
Move open outside try/finally
Diffstat (limited to 'Parser')
-rw-r--r-- | Parser/asdl.py | 2 |
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() |