diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2010-05-16 00:34:40 +0000 |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2010-05-16 00:34:40 +0000 |
commit | 8a470d6039ffe85ea2e0f095fd0f0b960f099b94 (patch) | |
tree | fb45d78c7f4c9ae678bc3a1b43807ce373b323d9 /Python/Python-ast.c | |
parent | 3bea1ede7d260484f66b1ee4e3e20d65e3bf9bd1 (diff) | |
download | cpython-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