From: Benjamin Peterson Date: Tue, 30 Jun 2009 22:27:25 +0000 (+0000) Subject: Merged revisions 73710 via svnmerge from X-Git-Tag: v3.2a1~2931 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=98d23f2e065713ccfbc07d9a0b65f737a212bfb5;p=python Merged revisions 73710 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r73710 | benjamin.peterson | 2009-06-30 17:14:33 -0500 (Tue, 30 Jun 2009) | 1 line provide a dummy __exit__ on windows ........ --- diff --git a/Lib/tempfile.py b/Lib/tempfile.py index 74e3cb2b56..8cdefaa635 100644 --- a/Lib/tempfile.py +++ b/Lib/tempfile.py @@ -408,6 +408,9 @@ class _TemporaryFileWrapper: result = self.file.__exit__(exc, value, tb) self.close() return result + else: + def __exit__(self, exc, value, tb): + pass def NamedTemporaryFile(mode='w+b', buffering=-1, encoding=None,