commit | d342c62961b04b3d08b8776615c3d32a38268a13 | [log] [tgz] |
---|---|---|
author | Tim Peters <tim.peters@gmail.com> | Thu Aug 02 17:23:11 2001 +0000 |
committer | Tim Peters <tim.peters@gmail.com> | Thu Aug 02 17:23:11 2001 +0000 |
tree | 6ba4c873fbcb7a8464052b0c9e85f0f5e67e800d | |
parent | 044bb4d22a20a172edc58dd7eed5f72428d2cc16 [diff] |
This test failed under python -O. rewrite_file(): Delete both .pyc and .pyo leftovers, and explicitly close the new source file after writing to it.