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:
parent
835a6c8467
commit
98d23f2e06
|
@ -408,6 +408,9 @@ class _TemporaryFileWrapper:
|
||||||
result = self.file.__exit__(exc, value, tb)
|
result = self.file.__exit__(exc, value, tb)
|
||||||
self.close()
|
self.close()
|
||||||
return result
|
return result
|
||||||
|
else:
|
||||||
|
def __exit__(self, exc, value, tb):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
def NamedTemporaryFile(mode='w+b', buffering=-1, encoding=None,
|
def NamedTemporaryFile(mode='w+b', buffering=-1, encoding=None,
|
||||||
|
|
Loading…
Reference in New Issue