[Python-checkins] python/dist/src/Lib socket.py,1.42,1.43
tim_one at users.sourceforge.net
tim_one at users.sourceforge.net
Sat Mar 27 21:20:47 EST 2004
Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3895/lib
Modified Files:
socket.py
Log Message:
SF bug 924242: socket._fileobject._getclosed() returns wrong value
The .closed property always returned the wrong result.
Bugfix candidate!
Index: socket.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/socket.py,v
retrieving revision 1.42
retrieving revision 1.43
diff -C2 -d -r1.42 -r1.43
*** socket.py 14 Jun 2003 13:30:53 -0000 1.42
--- socket.py 28 Mar 2004 02:20:44 -0000 1.43
***************
*** 218,222 ****
def _getclosed(self):
! return self._sock is not None
closed = property(_getclosed, doc="True if the file is closed")
--- 218,222 ----
def _getclosed(self):
! return self._sock is None
closed = property(_getclosed, doc="True if the file is closed")
More information about the Python-checkins
mailing list