mirror of
https://github.com/python/cpython.git
synced 2025-11-01 06:01:29 +00:00
Followup to r83869 and issue #8524: rename socket.forget() to socket.detach()
and make it return the file descriptor.
This commit is contained in:
parent
30e86a4767
commit
6e451df800
6 changed files with 29 additions and 24 deletions
|
|
@ -157,7 +157,7 @@ def __init__(self, sock=None, keyfile=None, certfile=None,
|
|||
raise
|
||||
else:
|
||||
connected = True
|
||||
sock.forget()
|
||||
sock.detach()
|
||||
elif fileno is not None:
|
||||
socket.__init__(self, fileno=fileno)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue