summaryrefslogtreecommitdiffstats
path: root/Lib/socket.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/socket.py')
-rw-r--r--Lib/socket.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/socket.py b/Lib/socket.py
index 8e30ce0..39d5119 100644
--- a/Lib/socket.py
+++ b/Lib/socket.py
@@ -217,7 +217,7 @@ class _fileobject(object):
self._wbuf = [] # A list of strings
def _getclosed(self):
- return self._sock is not None
+ return self._sock is None
closed = property(_getclosed, doc="True if the file is closed")
def close(self):