Commit 31f42ab2 authored by Benjamin Peterson's avatar Benjamin Peterson

provide a dummy __exit__ on windows

parent 1b90efbd
......@@ -411,6 +411,9 @@ class _TemporaryFileWrapper:
result = self.file.__exit__(exc, value, tb)
self.close()
return result
else:
def __exit__(self, exc, value, tb):
pass
def NamedTemporaryFile(mode='w+b', bufsize=-1, suffix="",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment