summaryrefslogtreecommitdiffstats
path: root/Lib/urllib2.py
diff options
context:
space:
mode:
authorSenthil Kumaran <orsenthil@gmail.com>2009-11-15 06:10:30 (GMT)
committerSenthil Kumaran <orsenthil@gmail.com>2009-11-15 06:10:30 (GMT)
commit51200277b23fd9faca5f03dae127221e9b67e7f1 (patch)
treed3c00c23a1a865a55b62a789a75afb65ce2716fd /Lib/urllib2.py
parent4653b8c2defd5158bbb3c0df44f034ad7790fcd0 (diff)
downloadcpython-51200277b23fd9faca5f03dae127221e9b67e7f1.zip
cpython-51200277b23fd9faca5f03dae127221e9b67e7f1.tar.gz
cpython-51200277b23fd9faca5f03dae127221e9b67e7f1.tar.bz2
Addition of some details in the code comments.
Diffstat (limited to 'Lib/urllib2.py')
-rw-r--r--Lib/urllib2.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/urllib2.py b/Lib/urllib2.py
index a6c3e29..2d73475 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.