diff options
author | Benjamin Peterson <benjamin@python.org> | 2013-01-10 20:16:20 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2013-01-10 20:16:20 (GMT) |
commit | 36f7b97787f3428037ffa007bf93dadb738eef03 (patch) | |
tree | 784e50cbf1821bf57970fa6b9b1e0bb28f70c278 /Lib/ssl.py | |
parent | 7bd04867e53d78ddb0f5e8f78b9256298d41fadd (diff) | |
download | cpython-36f7b97787f3428037ffa007bf93dadb738eef03.zip cpython-36f7b97787f3428037ffa007bf93dadb738eef03.tar.gz cpython-36f7b97787f3428037ffa007bf93dadb738eef03.tar.bz2 |
remove __del__ because it's evil and also prevents the ResourceWarning on the socket from happening (closes #16900)
Diffstat (limited to 'Lib/ssl.py')
-rw-r--r-- | Lib/ssl.py | 4 |
1 files changed, 0 insertions, 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, |