Merged revisions 73749 via svnmerge from
authorGeorg Brandl <georg@python.org>
Thu, 13 Aug 2009 08:57:20 +0000 (08:57 +0000)
committerGeorg Brandl <georg@python.org>
Thu, 13 Aug 2009 08:57:20 +0000 (08:57 +0000)
svn+ssh://svn.python.org/python/branches/py3k

................
  r73749 | benjamin.peterson | 2009-07-01 17:47:07 +0200 (Mi, 01 Jul 2009) | 9 lines

  Merged revisions 73744 via svnmerge from
  svn+ssh://pythondev@svn.python.org/python/trunk

  ........
    r73744 | benjamin.peterson | 2009-07-01 08:34:35 -0500 (Wed, 01 Jul 2009) | 1 line

    proxy the __exit__ call
  ........
................

Lib/tempfile.py

index 8cdefaa635bba4372fef4b5559a7fe37fb637c9d..93405a85ba10a36d423574b54b9417ea5324df23 100644 (file)
@@ -410,7 +410,7 @@ class _TemporaryFileWrapper:
             return result
     else:
         def __exit__(self, exc, value, tb):
-            pass
+            self.file.__exit__(exc, value, tb)
 
 
 def NamedTemporaryFile(mode='w+b', buffering=-1, encoding=None,