[Python-checkins] r77019 - in python/branches/release26-maint: Doc/library/urllib2.rst

senthil.kumaran python-checkins at python.org
Thu Dec 24 03:21:03 CET 2009


Author: senthil.kumaran
Date: Thu Dec 24 03:21:03 2009
New Revision: 77019

Log:
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.
........


Modified:
   python/branches/release26-maint/   (props changed)
   python/branches/release26-maint/Doc/library/urllib2.rst

Modified: python/branches/release26-maint/Doc/library/urllib2.rst
==============================================================================
--- python/branches/release26-maint/Doc/library/urllib2.rst	(original)
+++ python/branches/release26-maint/Doc/library/urllib2.rst	Thu Dec 24 03:21:03 2009
@@ -945,10 +945,10 @@
 :class:`ProxyBasicAuthHandler`. ::
 
    proxy_handler = urllib2.ProxyHandler({'http': 'http://www.example.com:3128/'})
-   proxy_auth_handler = urllib2.HTTPBasicAuthHandler()
+   proxy_auth_handler = urllib2.ProxyBasicAuthHandler()
    proxy_auth_handler.add_password('realm', 'host', 'username', 'password')
 
-   opener = build_opener(proxy_handler, proxy_auth_handler)
+   opener = urllib2.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')
 


More information about the Python-checkins mailing list