From c459264f5b271fa32574621cc0a5a7af750f453b Mon Sep 17 00:00:00 2001 From: Bill Janssen Date: Fri, 31 Aug 2007 19:02:23 +0000 Subject: deprecate use of FakeSocket --- Lib/httplib.py | 4 ++++ 1 file changed, 4 insertions(+) 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 -- cgit v0.12