mirror of
https://github.com/python/cpython.git
synced 2026-01-06 07:22:09 +00:00
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
1 changed files with 3 additions and 0 deletions
|
|
@ -408,6 +408,9 @@ def __exit__(self, exc, value, tb):
|
|||
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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue