[Python-checkins] r73711 - in python/branches/py3k: Lib/tempfile.py
benjamin.peterson
python-checkins at python.org
Wed Jul 1 00:27:26 CEST 2009
Author: benjamin.peterson
Date: Wed Jul 1 00:27:25 2009
New Revision: 73711
Log:
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
........
Modified:
python/branches/py3k/ (props changed)
python/branches/py3k/Lib/tempfile.py
Modified: python/branches/py3k/Lib/tempfile.py
==============================================================================
--- python/branches/py3k/Lib/tempfile.py (original)
+++ python/branches/py3k/Lib/tempfile.py Wed Jul 1 00:27:25 2009
@@ -408,6 +408,9 @@
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,
More information about the Python-checkins
mailing list