From: Benjamin Peterson Date: Wed, 1 Jul 2009 13:34:35 +0000 (+0000) Subject: proxy the __exit__ call X-Git-Tag: v2.7a1~859 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f24767938f5793c4d6edd72d24bb99abd9ccf77;p=thirdparty%2FPython%2Fcpython.git proxy the __exit__ call --- diff --git a/Lib/tempfile.py b/Lib/tempfile.py index 92fb040c4a73..1c718145d39b 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="",