Author: bill.janssen Date: Fri Aug 31 21:02:23 2007 New Revision: 57854 Modified: python/trunk/Lib/httplib.py Log: deprecate use of FakeSocket Modified: python/trunk/Lib/httplib.py ============================================================================== --- python/trunk/Lib/httplib.py (original) +++ python/trunk/Lib/httplib.py Fri Aug 31 21:02:23 2007 @@ -70,6 +70,7 @@ import mimetools import socket from urlparse import urlsplit +import warnings try: from cStringIO import StringIO @@ -1081,6 +1082,9 @@ 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
participants (1)
-
bill.janssen