mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
remove __del__ because it's evil and also prevents the ResourceWarning on the socket from happening (closes #16900)
This commit is contained in:
parent
7bd04867e5
commit
36f7b97787
3 changed files with 10 additions and 4 deletions
|
@ -574,10 +574,6 @@ class SSLSocket(socket):
|
|||
return None
|
||||
return self._sslobj.tls_unique_cb()
|
||||
|
||||
def __del__(self):
|
||||
# sys.stderr.write("__del__ on %s\n" % repr(self))
|
||||
self._real_close()
|
||||
|
||||
|
||||
def wrap_socket(sock, keyfile=None, certfile=None,
|
||||
server_side=False, cert_reqs=CERT_NONE,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue