[Python-checkins] r73710 - python/trunk/Lib/tempfile.py
benjamin.peterson
python-checkins at python.org
Wed Jul 1 00:14:34 CEST 2009
Author: benjamin.peterson
Date: Wed Jul 1 00:14:33 2009
New Revision: 73710
Log:
provide a dummy __exit__ on windows
Modified:
python/trunk/Lib/tempfile.py
Modified: python/trunk/Lib/tempfile.py
==============================================================================
--- python/trunk/Lib/tempfile.py (original)
+++ python/trunk/Lib/tempfile.py Wed Jul 1 00:14:33 2009
@@ -411,6 +411,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', bufsize=-1, suffix="",
More information about the Python-checkins
mailing list