summaryrefslogtreecommitdiff
path: root/Lib/warnings.py
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2002-09-11 02:56:42 +0000
committerBarry Warsaw <barry@python.org>2002-09-11 02:56:42 +0000
commitccd9e75b189c8084b08af797c5711938685b8b5b (patch)
tree208c38404f0d729ed75e13f496d9333296b5731b /Lib/warnings.py
parent1a5b9562d62be4fac4bea7b604f4d921f284a817 (diff)
downloadcpython-git-ccd9e75b189c8084b08af797c5711938685b8b5b.tar.gz
test_both(): I believe this was a typo: m is only defined if no
exception occurred so it should only be closed in the else clause. Without this change we can an UnboundLocalError on Linux: Traceback (most recent call last): File "Lib/test/test_mmap.py", line 304, in ? test_both() File "Lib/test/test_mmap.py", line 208, in test_both m.close() UnboundLocalError: local variable 'm' referenced before assignment
Diffstat (limited to 'Lib/warnings.py')
0 files changed, 0 insertions, 0 deletions