diff options
author | Bill Janssen <janssen@parc.com> | 2007-08-31 19:02:23 (GMT) |
---|---|---|
committer | Bill Janssen <janssen@parc.com> | 2007-08-31 19:02:23 (GMT) |
commit | c459264f5b271fa32574621cc0a5a7af750f453b (patch) | |
tree | 6537e02f43f5fb359a068618daaef38a0dfb6c89 /Lib/httplib.py | |
parent | 1ab4a1f9b80106d2658e45f905d293bd6270367e (diff) | |
download | cpython-c459264f5b271fa32574621cc0a5a7af750f453b.zip cpython-c459264f5b271fa32574621cc0a5a7af750f453b.tar.gz cpython-c459264f5b271fa32574621cc0a5a7af750f453b.tar.bz2 |
deprecate use of FakeSocket
Diffstat (limited to 'Lib/httplib.py')
-rw-r--r-- | Lib/httplib.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/httplib.py b/Lib/httplib.py index b9e59d0..b926082 100644 --- a/Lib/httplib.py +++ b/Lib/httplib.py @@ -70,6 +70,7 @@ import errno import mimetools import socket from urlparse import urlsplit +import warnings try: from cStringIO import StringIO @@ -1081,6 +1082,9 @@ else: def FakeSocket (sock, sslobj): + warnings.warn("FakeSocket is deprecated, and won't be in 3.x. " + + "Use the result of ssl.sslsocket directly instead.", + DeprecationWarning, stacklevel=2) return sslobj |