FakeSocket is (supposed to be) gone in 3.x

This commit is contained in:
Antoine Pitrou 2010-10-06 18:38:22 +00:00
parent 1e2ae4f054
commit fa9c38d8e9

View file

@ -1067,13 +1067,6 @@ else:
self.sock = ssl.wrap_socket(sock, self.key_file, self.cert_file)
def FakeSocket (sock, sslobj):
warnings.warn("FakeSocket is deprecated, and won't be in 3.x. " +
"Use the result of ssl.wrap_socket() directly instead.",
DeprecationWarning, stacklevel=2)
return sslobj
__all__.append("HTTPSConnection")
class HTTPException(Exception):