From: Antoine Pitrou Date: Wed, 6 Oct 2010 18:38:22 +0000 (+0000) Subject: FakeSocket is (supposed to be) gone in 3.x X-Git-Tag: v3.2a3~39 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fa9c38d8e9175338df4d42c721d658b095b4c727;p=thirdparty%2FPython%2Fcpython.git FakeSocket is (supposed to be) gone in 3.x --- diff --git a/Lib/http/client.py b/Lib/http/client.py index 34c098d961d9..355b36d1cdef 100644 --- a/Lib/http/client.py +++ b/Lib/http/client.py @@ -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):