Commit 6ef966e1 authored by Tim Peters's avatar Tim Peters

_TemporaryFileWrapper: changed self.close_called to a proper bool.

parent 2100798b
......@@ -351,7 +351,7 @@ class _TemporaryFileWrapper:
def __init__(self, file, name):
self.file = file
self.name = name
self.close_called = 0
self.close_called = False
def __getattr__(self, name):
file = self.__dict__['file']
......@@ -374,7 +374,7 @@ class _TemporaryFileWrapper:
def close(self):
if not self.close_called:
self.close_called = 1
self.close_called = True
self.file.close()
self.unlink(self.name)
......
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