]> granicus.if.org Git - python/commitdiff
Merged revisions 75474 via svnmerge from
authorSenthil Kumaran <orsenthil@gmail.com>
Sun, 18 Oct 2009 01:31:15 +0000 (01:31 +0000)
committerSenthil Kumaran <orsenthil@gmail.com>
Sun, 18 Oct 2009 01:31:15 +0000 (01:31 +0000)
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r75474 | senthil.kumaran | 2009-10-18 06:54:41 +0530 (Sun, 18 Oct 2009) | 2 lines

  Fix for Issue7155 - urllib do not document default use of system proxy configuration
........

Doc/library/urllib.rst
Doc/library/urllib2.rst

index 905c3245e09434b6c80381aa9268de6edd0f7dbd..68b57aa9a1ea0105bdc381114ce64ba9e3a05a2b 100644 (file)
@@ -96,8 +96,10 @@ High-level interface
 
    .. index:: single: Internet Config
 
-   In a Macintosh environment, :func:`urlopen` will retrieve proxy information from
-   Internet Config.
+   In a Mac OS X  environment, :func:`urlopen` will retrieve proxy information
+   from the OS X System Configuration Framework, which can be managed with
+   Network System Preferences panel.
+
 
    Alternatively, the optional *proxies* argument may be used to explicitly specify
    proxies.  It must be a dictionary mapping scheme names to proxy URLs, where an
index e6f80616215c0c2ae723f2621448e9b96387e5eb..cb8dc553d1b9efd85a9c0bbfe9d7d71ecf61619e 100644 (file)
@@ -53,6 +53,9 @@ The :mod:`urllib2` module defines the following functions:
    default installed global :class:`OpenerDirector` uses :class:`UnknownHandler` to
    ensure this never happens).
 
+   In addition, default installed :class:`ProxyHandler` makes sure the requests
+   are handled through the proxy when they are set.
+
    .. versionchanged:: 2.6
       *timeout* was added.
 
@@ -187,8 +190,13 @@ The following classes are provided:
 .. class:: ProxyHandler([proxies])
 
    Cause requests to go through a proxy. If *proxies* is given, it must be a
-   dictionary mapping protocol names to URLs of proxies. The default is to read the
-   list of proxies from the environment variables :envvar:`<protocol>_proxy`.
+   dictionary mapping protocol names to URLs of proxies. The default is to read
+   the list of proxies from the environment variables
+   :envvar:`<protocol>_proxy`.  If no proxy environment variables are set, in a
+   Windows environment, proxy settings are obtained from the registry's
+   Internet Settings section and in a Mac OS X  environment, proxy information
+   is retrieved from from the OS X System Configuration Framework.
+
    To disable autodetected proxy pass an empty dictionary.