Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 98d23f2

Browse files
committed
Merged revisions 73710 via svnmerge from
svn+ssh://[email protected]/python/trunk ........ r73710 | benjamin.peterson | 2009-06-30 17:14:33 -0500 (Tue, 30 Jun 2009) | 1 line provide a dummy __exit__ on windows ........
1 parent 835a6c8 commit 98d23f2

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Lib/tempfile.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,9 @@ def __exit__(self, exc, value, tb):
408408
result = self.file.__exit__(exc, value, tb)
409409
self.close()
410410
return result
411+
else:
412+
def __exit__(self, exc, value, tb):
413+
pass
411414

412415

413416
def NamedTemporaryFile(mode='w+b', buffering=-1, encoding=None,

0 commit comments

Comments
 (0)