commit | 4f24767938f5793c4d6edd72d24bb99abd9ccf77 | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Wed Jul 01 13:34:35 2009 +0000 |
committer | Benjamin Peterson <benjamin@python.org> | Wed Jul 01 13:34:35 2009 +0000 |
tree | 31ee59f497315b9b3ad608f1f553d91867f7d138 | |
parent | 321afa80ba53503c882bcf18ec2df9e569a35874 [diff] [blame] |
proxy the __exit__ call
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 @@ return result else: def __exit__(self, exc, value, tb): - pass + self.file.__exit__(exc, value, tb) def NamedTemporaryFile(mode='w+b', bufsize=-1, suffix="",