summaryrefslogtreecommitdiff
path: root/Lib/tempfile.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-06-30 22:27:25 +0000
committerBenjamin Peterson <benjamin@python.org>2009-06-30 22:27:25 +0000
commit98d23f2e065713ccfbc07d9a0b65f737a212bfb5 (patch)
tree6547d1a3979e9451599a4a176897c2bca5975fe4 /Lib/tempfile.py
parent835a6c8467a5c2d63a23b392d21c79c5f5a9e300 (diff)
downloadcpython-git-98d23f2e065713ccfbc07d9a0b65f737a212bfb5.tar.gz
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 ........
Diffstat (limited to 'Lib/tempfile.py')
-rw-r--r--Lib/tempfile.py3
1 files changed, 3 insertions, 0 deletions
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,