]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Reflow paragraphs.
authorR David Murray <rdmurray@bitdance.com>
Sun, 28 Apr 2013 15:24:35 +0000 (11:24 -0400)
committerR David Murray <rdmurray@bitdance.com>
Sun, 28 Apr 2013 15:24:35 +0000 (11:24 -0400)
I know one of them looks worse, but now it is <80 chars and
matches the 2.7 text.

Doc/howto/urllib2.rst
Doc/library/urllib.request.rst

index 77ef505fef65c6bee8d420690b9727b0fdcf35fc..b683ab684efe12b9378fd41eac8be41f5c0185bc 100644 (file)
@@ -523,10 +523,10 @@ Proxies
 
 **urllib** will auto-detect your proxy settings and use those. This is through
 the ``ProxyHandler``, which is part of the normal handler chain when a proxy
-setting is detected.  Normally that's
-a good thing, but there are occasions when it may not be helpful [#]_. One way
-to do this is to setup our own ``ProxyHandler``, with no proxies defined. This
-is done using similar steps to setting up a `Basic Authentication`_ handler : ::
+setting is detected.  Normally that's a good thing, but there are occasions
+when it may not be helpful [#]_. One way to do this is to setup our own
+``ProxyHandler``, with no proxies defined. This is done using similar steps to
+setting up a `Basic Authentication`_ handler : ::
 
     >>> proxy_support = urllib.request.ProxyHandler({})
     >>> opener = urllib.request.build_opener(proxy_support)
index 0ccfda2c67fd82fdda08329097adf396d5382b54..f525e45ab8fc199c494f3d37f6bdc6b9b8afb30d 100644 (file)
@@ -129,10 +129,9 @@ The :mod:`urllib.request` module defines the following functions:
    the constructor without any parameters).  Instances of the following classes
    will be in front of the *handler*\s, unless the *handler*\s contain them,
    instances of them or subclasses of them: :class:`ProxyHandler` (if proxy
-   settings are detected),
-   :class:`UnknownHandler`, :class:`HTTPHandler`, :class:`HTTPDefaultErrorHandler`,
-   :class:`HTTPRedirectHandler`, :class:`FTPHandler`, :class:`FileHandler`,
-   :class:`HTTPErrorProcessor`.
+   settings are detected), :class:`UnknownHandler`, :class:`HTTPHandler`,
+   :class:`HTTPDefaultErrorHandler`, :class:`HTTPRedirectHandler`,
+   :class:`FTPHandler`, :class:`FileHandler`, :class:`HTTPErrorProcessor`.
 
    If the Python installation has SSL support (i.e., if the :mod:`ssl` module
    can be imported), :class:`HTTPSHandler` will also be added.
@@ -257,12 +256,12 @@ The following classes are provided:
 .. class:: ProxyHandler(proxies=None)
 
    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`.
-   If no proxy environment variables are set, then 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 the OS X System
-   Configuration Framework.
+   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, then
+   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 the OS X System Configuration Framework.
 
    To disable autodetected proxy pass an empty dictionary.