diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2013-12-24 09:04:06 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-12-24 09:04:06 (GMT) |
commit | b712873a63fb0b0776d86dab5436ff8952eba02c (patch) | |
tree | c67bb711363f9e58dcc06bee95cf430b984dd03d /Doc/howto | |
parent | 610f84af0d810f4d43336ca4f8408d60655d5bf2 (diff) | |
download | cpython-b712873a63fb0b0776d86dab5436ff8952eba02c.zip cpython-b712873a63fb0b0776d86dab5436ff8952eba02c.tar.gz cpython-b712873a63fb0b0776d86dab5436ff8952eba02c.tar.bz2 |
Removed spaces before colons and semicolons.
Diffstat (limited to 'Doc/howto')
-rw-r--r-- | Doc/howto/logging-cookbook.rst | 1 | ||||
-rw-r--r-- | Doc/howto/urllib2.rst | 6 |
2 files changed, 3 insertions, 4 deletions
diff --git a/Doc/howto/logging-cookbook.rst b/Doc/howto/logging-cookbook.rst index e5d75a6..50c84e1 100644 --- a/Doc/howto/logging-cookbook.rst +++ b/Doc/howto/logging-cookbook.rst @@ -834,4 +834,3 @@ When the above script is run, it prints:: Note that the order of items might be different according to the version of Python used. - diff --git a/Doc/howto/urllib2.rst b/Doc/howto/urllib2.rst index e32c560..d13f174 100644 --- a/Doc/howto/urllib2.rst +++ b/Doc/howto/urllib2.rst @@ -18,7 +18,7 @@ Introduction .. sidebar:: Related Articles You may also find useful the following article on fetching web resources - with Python : + with Python: * `Basic Authentication <http://www.voidspace.org.uk/python/articles/authentication.shtml>`_ @@ -439,7 +439,7 @@ Authentication Tutorial When authentication is required, the server sends a header (as well as the 401 error code) requesting authentication. This specifies the authentication scheme -and a 'realm'. The header looks like : ``WWW-Authenticate: SCHEME +and a 'realm'. The header looks like: ``WWW-Authenticate: SCHEME realm="REALM"``. e.g. :: @@ -511,7 +511,7 @@ 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 up a `Basic Authentication`_ handler: :: >>> proxy_support = urllib2.ProxyHandler({}) >>> opener = urllib2.build_opener(proxy_support) |