FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Move open outside try/finally · python-emscripten/cpython@1891cff · GitHub

Repository navigation

Commit 1891cff

Browse files
committed
Move open outside try/finally
1 parent 9908123 commit 1891cff

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Parser/asdl.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,8 +398,8 @@ def parse(file):
398398
scanner = ASDLScanner()
399399
parser = ASDLParser()
400400

401+
f = open(file)
401402
try:
402-
f = open(file)
403403
buf = f.read()
404404
finally:
405405
f.close()

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL