Kaydet (Commit) 65960414 authored tarafından R David Murray's avatar R David Murray

Reflow paragraph.

üst 806c1c93
...@@ -508,10 +508,10 @@ Proxies ...@@ -508,10 +508,10 @@ Proxies
**urllib2** will auto-detect your proxy settings and use those. This is through **urllib2** 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 the ``ProxyHandler``, which is part of the normal handler chain when a proxy
setting is detected. Normally that's setting is detected. Normally that's a good thing, but there are occasions
a good thing, but there are occasions when it may not be helpful [#]_. One way when it may not be helpful [#]_. One way to do this is to setup our own
to do this is to setup our own ``ProxyHandler``, with no proxies defined. This ``ProxyHandler``, with no proxies defined. This is done using similar steps to
is done using similar steps to setting up a `Basic Authentication`_ handler : :: setting up a `Basic Authentication`_ handler : ::
>>> proxy_support = urllib2.ProxyHandler({}) >>> proxy_support = urllib2.ProxyHandler({})
>>> opener = urllib2.build_opener(proxy_support) >>> opener = urllib2.build_opener(proxy_support)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment