commit | 7ac5cb18df3b9778d55aaf673da7c49f1666b4c9 | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@haypocalc.com> | Sun May 16 00:36:38 2010 +0000 |
committer | Victor Stinner <victor.stinner@haypocalc.com> | Sun May 16 00:36:38 2010 +0000 |
tree | 3ebe345faddd3932fc66f2b765a3414bafcf0f62 | |
parent | beba826023972d1440c1f646e1605e396011579f [diff] |
Merged revisions 81224 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r81224 | victor.stinner | 2010-05-16 02:34:40 +0200 (dim., 16 mai 2010) | 4 lines Use with open() as fo: ... instead of try: fo = open(...) finally: fo.close() fo is not set if the open() fails. ........