mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
FakeSocket is (supposed to be) gone in 3.x
This commit is contained in:
parent
1e2ae4f054
commit
fa9c38d8e9
1 changed files with 0 additions and 7 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue