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
........
This commit is contained in:
Benjamin Peterson 2009-06-30 22:27:25 +00:00
parent 835a6c8467
commit 98d23f2e06
1 changed files with 3 additions and 0 deletions

View 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,