diff options
author | Senthil Kumaran <orsenthil@gmail.com> | 2009-11-15 06:14:36 (GMT) |
---|---|---|
committer | Senthil Kumaran <orsenthil@gmail.com> | 2009-11-15 06:14:36 (GMT) |
commit | f0bb4354845cdfd188ab02009f4c28d9a67e3980 (patch) | |
tree | 7d85830aeea98d6c0c1af21f268f54763e3b54c6 /Lib/urllib2.py | |
parent | 693618cd7b661a9af5b5d7a97795123536a29cb6 (diff) | |
download | cpython-f0bb4354845cdfd188ab02009f4c28d9a67e3980.zip cpython-f0bb4354845cdfd188ab02009f4c28d9a67e3980.tar.gz cpython-f0bb4354845cdfd188ab02009f4c28d9a67e3980.tar.bz2 |
Merged revisions 76282 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r76282 | senthil.kumaran | 2009-11-15 11:40:30 +0530 (Sun, 15 Nov 2009) | 3 lines
Addition of some details in the code comments.
........
Diffstat (limited to 'Lib/urllib2.py')
-rw-r--r-- | Lib/urllib2.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/urllib2.py b/Lib/urllib2.py index 4763f15..1778675 100644 --- a/Lib/urllib2.py +++ b/Lib/urllib2.py @@ -30,7 +30,9 @@ handler, the argument will be installed instead of the default. install_opener -- Installs a new opener as the default opener. objects of interest: -OpenerDirector -- + +OpenerDirector -- Sets up the User Agent as the Python-urllib client and manages +the Handler classes, while dealing with requests and responses. Request -- An object that encapsulates the state of a request. The state can be as simple as the URL. It can also include extra HTTP @@ -440,7 +442,7 @@ def build_opener(*handlers): """Create an opener object from a list of handlers. The opener will use several default handlers, including support - for HTTP and FTP. + for HTTP, FTP and when applicable, HTTPS. If any of the handlers passed as arguments are subclasses of the default handlers, the default handlers will not be used. |