From 98d23f2e065713ccfbc07d9a0b65f737a212bfb5 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Tue, 30 Jun 2009 22:27:25 +0000 Subject: 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 ........ --- Lib/tempfile.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Lib/tempfile.py') 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, -- cgit v1.2.1