summaryrefslogtreecommitdiffstats
path: root/Lib/socket.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2004-03-28 02:20:45 (GMT)
committerTim Peters <tim.peters@gmail.com>2004-03-28 02:20:45 (GMT)
commit116d83ce710d4494a4d401edb6983aceef45b901 (patch)
tree3f08f60a7c2d7d07b77280ed4b836526fc557404 /Lib/socket.py
parent165163f245b702f8011120bb5ce544f7c79fd461 (diff)
downloadcpython-116d83ce710d4494a4d401edb6983aceef45b901.zip
cpython-116d83ce710d4494a4d401edb6983aceef45b901.tar.gz
cpython-116d83ce710d4494a4d401edb6983aceef45b901.tar.bz2
SF bug 924242: socket._fileobject._getclosed() returns wrong value
The .closed property always returned the wrong result. Bugfix candidate!
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):