summaryrefslogtreecommitdiff
path: root/Python/Python-ast.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2010-05-16 00:34:40 +0000
committerVictor Stinner <victor.stinner@haypocalc.com>2010-05-16 00:34:40 +0000
commit8a470d6039ffe85ea2e0f095fd0f0b960f099b94 (patch)
treefb45d78c7f4c9ae678bc3a1b43807ce373b323d9 /Python/Python-ast.c
parent3bea1ede7d260484f66b1ee4e3e20d65e3bf9bd1 (diff)
downloadcpython-git-8a470d6039ffe85ea2e0f095fd0f0b960f099b94.tar.gz
Use with open() as fo: ... instead of try: fo = open(...) finally: fo.close()
fo is not set if the open() fails.
Diffstat (limited to 'Python/Python-ast.c')
0 files changed, 0 insertions, 0 deletions