]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
FakeSocket is (supposed to be) gone in 3.x
authorAntoine Pitrou <solipsis@pitrou.net>
Wed, 6 Oct 2010 18:38:22 +0000 (18:38 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Wed, 6 Oct 2010 18:38:22 +0000 (18:38 +0000)
Lib/http/client.py

index 34c098d961d93659e1296fc41ea5cb64d4477bac..355b36d1cdef287f834dfa534b6d8cf7054ca335 100644 (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):