mirror of
https://github.com/python/cpython.git
synced 2025-08-24 18:55:00 +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 @@ class SSLSocket(socket):
|
|||
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