diff options
Diffstat (limited to 'Lib/plat-win/socket.py')
-rwxr-xr-x | Lib/plat-win/socket.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/plat-win/socket.py b/Lib/plat-win/socket.py index 7e1b372..645d01e 100755 --- a/Lib/plat-win/socket.py +++ b/Lib/plat-win/socket.py @@ -27,7 +27,7 @@ class _socketobject: self._sock = sock def close(self): - self._sock = None + self._sock = 0 def __del__(self): self.close() @@ -68,7 +68,7 @@ class _fileobject: if self._sock: self.flush() finally: - self._sock = None + self._sock = 0 def __del__(self): self.close() |