diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2017-05-16 20:18:09 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-16 20:18:09 (GMT) |
commit | d97b7dc94b19063f0589d401bdc4aaadc7030762 (patch) | |
tree | 2e278f095697fcec714d2e73ed54e0e321b8f6c0 /Doc/howto/urllib2.rst | |
parent | af34e0a07bc06a6248b8229247e05d1c767b2f32 (diff) | |
download | cpython-d97b7dc94b19063f0589d401bdc4aaadc7030762.zip cpython-d97b7dc94b19063f0589d401bdc4aaadc7030762.tar.gz cpython-d97b7dc94b19063f0589d401bdc4aaadc7030762.tar.bz2 |
bpo-30380: Fix Sphinx 1.6.1 warnings. (#1613)
* Use explicit numbering for footnotes referred by explicit number.
* Restore missed footnote reference in stdtypes.rst.
* Fix literal strings formatting in howto/urllib2.rst.
* Update susp-ignored.csv for zipapp.rst.
* Fix suspicious mark up in Misc/NEWS.
Diffstat (limited to 'Doc/howto/urllib2.rst')
-rw-r--r-- | Doc/howto/urllib2.rst | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Doc/howto/urllib2.rst b/Doc/howto/urllib2.rst index 18b5c65..8d383e0 100644 --- a/Doc/howto/urllib2.rst +++ b/Doc/howto/urllib2.rst @@ -34,8 +34,8 @@ handling common situations - like basic authentication, cookies, proxies and so on. These are provided by objects called handlers and openers. urllib.request supports fetching URLs for many "URL schemes" (identified by the string -before the ":" in URL - for example "ftp" is the URL scheme of -"ftp://python.org/") using their associated network protocols (e.g. FTP, HTTP). +before the ``":"`` in URL - for example ``"ftp"`` is the URL scheme of +``"ftp://python.org/"``) using their associated network protocols (e.g. FTP, HTTP). This tutorial focuses on the most common case, HTTP. For straightforward situations *urlopen* is very easy to use. But as soon as you @@ -511,10 +511,10 @@ than the URL you pass to .add_password() will also match. :: ``top_level_url`` is in fact *either* a full URL (including the 'http:' scheme component and the hostname and optionally the port number) -e.g. "http://example.com/" *or* an "authority" (i.e. the hostname, -optionally including the port number) e.g. "example.com" or "example.com:8080" +e.g. ``"http://example.com/"`` *or* an "authority" (i.e. the hostname, +optionally including the port number) e.g. ``"example.com"`` or ``"example.com:8080"`` (the latter example includes a port number). The authority, if present, must -NOT contain the "userinfo" component - for example "joe:password@example.com" is +NOT contain the "userinfo" component - for example ``"joe:password@example.com"`` is not correct. |