mirror of
https://github.com/python/cpython.git
synced 2025-07-29 06:05:00 +00:00
proxy the __exit__ call
This commit is contained in:
parent
321afa80ba
commit
4f24767938
1 changed files with 1 additions and 1 deletions
|
@ -413,7 +413,7 @@ class _TemporaryFileWrapper:
|
|||
return result
|
||||
else:
|
||||
def __exit__(self, exc, value, tb):
|
||||
pass
|
||||
self.file.__exit__(exc, value, tb)
|
||||
|
||||
|
||||
def NamedTemporaryFile(mode='w+b', bufsize=-1, suffix="",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue