summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-07-01 13:34:35 (GMT)
committerBenjamin Peterson <benjamin@python.org>2009-07-01 13:34:35 (GMT)
commit4f24767938f5793c4d6edd72d24bb99abd9ccf77 (patch)
tree31ee59f497315b9b3ad608f1f553d91867f7d138
parent321afa80ba53503c882bcf18ec2df9e569a35874 (diff)
downloadcpython-4f24767938f5793c4d6edd72d24bb99abd9ccf77.zip
cpython-4f24767938f5793c4d6edd72d24bb99abd9ccf77.tar.gz
cpython-4f24767938f5793c4d6edd72d24bb99abd9ccf77.tar.bz2
proxy the __exit__ call
-rw-r--r--Lib/tempfile.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/tempfile.py b/Lib/tempfile.py
index 92fb040..1c71814 100644
--- a/Lib/tempfile.py
+++ b/Lib/tempfile.py
@@ -413,7 +413,7 @@ class _TemporaryFileWrapper:
return result
else:
def __exit__(self, exc, value, tb):
- pass
+ self.file.__exit__(exc, value, tb)
def NamedTemporaryFile(mode='w+b', bufsize=-1, suffix="",