summaryrefslogtreecommitdiff
path: root/Doc/library/xmlrpc.client.rst
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-05-26 16:32:26 +0000
committerGeorg Brandl <georg@python.org>2008-05-26 16:32:26 +0000
commit2442015af26321083d4a2d75c096c8b732f049b2 (patch)
tree24cb8bc1fd46815ecc6e795cfcc008e7a576c672 /Doc/library/xmlrpc.client.rst
parent744c2cd32585c1aeb1b78063cc6dda740d59c0c0 (diff)
downloadcpython-git-2442015af26321083d4a2d75c096c8b732f049b2.tar.gz
Create http package. #2883.
Diffstat (limited to 'Doc/library/xmlrpc.client.rst')
-rw-r--r--Doc/library/xmlrpc.client.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/xmlrpc.client.rst b/Doc/library/xmlrpc.client.rst
index 7d597501d9..e249b12bf3 100644
--- a/Doc/library/xmlrpc.client.rst
+++ b/Doc/library/xmlrpc.client.rst
@@ -506,14 +506,14 @@ transport. The following example shows how:
::
- import xmlrpc.client, httplib
+ import xmlrpc.client, http.client
class ProxiedTransport(xmlrpc.client.Transport):
def set_proxy(self, proxy):
self.proxy = proxy
def make_connection(self, host):
self.realhost = host
- h = httplib.HTTP(self.proxy)
+ h = http.client.HTTP(self.proxy)
return h
def send_request(self, connection, handler, request_body):
connection.putrequest("POST", 'http://%s%s' % (self.realhost, handler))