mirror of
https://github.com/python/cpython.git
synced 2025-07-30 14:44:10 +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
|
return result
|
||||||
else:
|
else:
|
||||||
def __exit__(self, exc, value, tb):
|
def __exit__(self, exc, value, tb):
|
||||||
pass
|
self.file.__exit__(exc, value, tb)
|
||||||
|
|
||||||
|
|
||||||
def NamedTemporaryFile(mode='w+b', bufsize=-1, suffix="",
|
def NamedTemporaryFile(mode='w+b', bufsize=-1, suffix="",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue