From 1891cff587b348faea027e8836e5e6c30e19213c Mon Sep 17 00:00:00 2001 From: Eli Bendersky Date: Thu, 26 Sep 2013 09:35:39 -0700 Subject: Move open outside try/finally --- Parser/asdl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- cgit v0.12