summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSenthil Kumaran <orsenthil@gmail.com>2009-12-24 02:27:00 (GMT)
committerSenthil Kumaran <orsenthil@gmail.com>2009-12-24 02:27:00 (GMT)
commitf9d95f70430e1a0c9ff2ad821277c044d49c2094 (patch)
tree24d034d87b61614424811f3fe0749adb73883043
parent794921a2ed751f20bd13ec09aae2a3c00d5c8161 (diff)
downloadcpython-f9d95f70430e1a0c9ff2ad821277c044d49c2094.zip
cpython-f9d95f70430e1a0c9ff2ad821277c044d49c2094.tar.gz
cpython-f9d95f70430e1a0c9ff2ad821277c044d49c2094.tar.bz2
Merged revisions 77020 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r77020 | senthil.kumaran | 2009-12-24 07:54:37 +0530 (Thu, 24 Dec 2009) | 9 lines Merged revisions 77018 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r77018 | senthil.kumaran | 2009-12-24 07:48:14 +0530 (Thu, 24 Dec 2009) | 3 lines Fix for Issue7570: Error in urllib2 example. ........ ................
-rw-r--r--Doc/library/urllib.request.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/urllib.request.rst b/Doc/library/urllib.request.rst
index 9d60662..b43d9a9 100644
--- a/Doc/library/urllib.request.rst
+++ b/Doc/library/urllib.request.rst
@@ -1116,10 +1116,10 @@ programmatically-supplied proxy URLs, and adds proxy authorization support with
:class:`ProxyBasicAuthHandler`. ::
proxy_handler = urllib.request.ProxyHandler({'http': 'http://www.example.com:3128/'})
- proxy_auth_handler = urllib.request.HTTPBasicAuthHandler()
+ proxy_auth_handler = urllib.request.ProxyBasicAuthHandler()
proxy_auth_handler.add_password('realm', 'host', 'username', 'password')
- opener = build_opener(proxy_handler, proxy_auth_handler)
+ opener = urllib.request.build_opener(proxy_handler, proxy_auth_handler)
# This time, rather than install the OpenerDirector, we use it directly:
opener.open('http://www.example.com/login.html')