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

Skip to content

Commit 3f5de13

Browse files
committed
Merged revisions 73744 via svnmerge from
svn+ssh://[email protected]/python/trunk ........ r73744 | benjamin.peterson | 2009-07-01 08:34:35 -0500 (Wed, 01 Jul 2009) | 1 line proxy the __exit__ call ........
1 parent 5492395 commit 3f5de13

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/tempfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ def __exit__(self, exc, value, tb):
410410
return result
411411
else:
412412
def __exit__(self, exc, value, tb):
413-
pass
413+
self.file.__exit__(exc, value, tb)
414414

415415

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

0 commit comments

Comments
 (0)