]> granicus.if.org Git - python/commitdiff
Merged revisions 73710 via svnmerge from
authorBenjamin Peterson <benjamin@python.org>
Tue, 30 Jun 2009 22:27:25 +0000 (22:27 +0000)
committerBenjamin Peterson <benjamin@python.org>
Tue, 30 Jun 2009 22:27:25 +0000 (22:27 +0000)
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

index 74e3cb2b568c7d9acfbaa309221436d7222d5488..8cdefaa635bba4372fef4b5559a7fe37fb637c9d 100644 (file)
@@ -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,