Skip to content

Commit 083f13e

Browse files
serhiy-storchakabrettcannon
authored andcommitted
[3.5] bpo-30380: Fix Sphinx 1.6.1 warnings. (GH-1613) (GH-1615)
1 parent 27dfbf0 commit 083f13e

File tree

6 files changed

+14
-14
lines changed

6 files changed

+14
-14
lines changed

Doc/howto/urllib2.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ handling common situations - like basic authentication, cookies, proxies and so
3434
on. These are provided by objects called handlers and openers.
3535

3636
urllib.request supports fetching URLs for many "URL schemes" (identified by the string
37-
before the ":" in URL - for example "ftp" is the URL scheme of
38-
"ftp://python.org/") using their associated network protocols (e.g. FTP, HTTP).
37+
before the ``":"`` in URL - for example ``"ftp"`` is the URL scheme of
38+
``"ftp://python.org/"``) using their associated network protocols (e.g. FTP, HTTP).
3939
This tutorial focuses on the most common case, HTTP.
4040

4141
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. ::
511511

512512
``top_level_url`` is in fact *either* a full URL (including the 'http:' scheme
513513
component and the hostname and optionally the port number)
514-
e.g. "http://example.com/" *or* an "authority" (i.e. the hostname,
515-
optionally including the port number) e.g. "example.com" or "example.com:8080"
514+
e.g. ``"http://example.com/"`` *or* an "authority" (i.e. the hostname,
515+
optionally including the port number) e.g. ``"example.com"`` or ``"example.com:8080"``
516516
(the latter example includes a port number). The authority, if present, must
517-
NOT contain the "userinfo" component - for example "joe:[email protected]" is
517+
NOT contain the "userinfo" component - for example ``"joe:[email protected]"`` is
518518
not correct.
519519

520520

Doc/library/pyexpat.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -869,7 +869,7 @@ The ``errors`` module has the following attributes:
869869

870870
.. rubric:: Footnotes
871871

872-
.. [#] The encoding string included in XML output should conform to the
872+
.. [1] The encoding string included in XML output should conform to the
873873
appropriate standards. For example, "UTF-8" is valid, but "UTF8" is
874874
not. See https://www.w3.org/TR/2006/REC-xml11-20060816/#NT-EncodingDecl
875875
and https://www.iana.org/assignments/character-sets/character-sets.xhtml.

Doc/library/stdtypes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -829,7 +829,7 @@ restrictions imposed by *s*.
829829

830830
The ``in`` and ``not in`` operations have the same priorities as the
831831
comparison operations. The ``+`` (concatenation) and ``*`` (repetition)
832-
operations have the same priority as the corresponding numeric operations.
832+
operations have the same priority as the corresponding numeric operations. [3]_
833833

834834
.. index::
835835
triple: operations on; sequence; types

Doc/library/xml.dom.minidom.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ utility to most DOM users.
248248

249249
.. rubric:: Footnotes
250250

251-
.. [#] The encoding name included in the XML output should conform to
251+
.. [1] The encoding name included in the XML output should conform to
252252
the appropriate standards. For example, "UTF-8" is valid, but
253253
"UTF8" is not valid in an XML document's declaration, even though
254254
Python accepts it as an encoding name.

Doc/library/xml.etree.elementtree.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1192,7 +1192,7 @@ Exceptions
11921192

11931193
.. rubric:: Footnotes
11941194

1195-
.. [#] The encoding string included in XML output should conform to the
1195+
.. [1] The encoding string included in XML output should conform to the
11961196
appropriate standards. For example, "UTF-8" is valid, but "UTF8" is
11971197
not. See https://www.w3.org/TR/2006/REC-xml11-20060816/#NT-EncodingDecl
11981198
and https://www.iana.org/assignments/character-sets/character-sets.xhtml.

Doc/tools/susp-ignored.csv

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ howto/pyporting,,::,Programming Language :: Python :: 2
8282
howto/pyporting,,::,Programming Language :: Python :: 3
8383
howto/regex,,::,
8484
howto/regex,,:foo,(?:foo)
85-
howto/urllib2,,:password,"for example ""joe:[email protected]"""
85+
howto/urllib2,,:password,"""joe:[email protected]"""
8686
library/audioop,,:ipos,"# factor = audioop.findfactor(in_test[ipos*2:ipos*2+len(out_test)],"
8787
library/bisect,32,:hi,all(val >= x for val in a[i:hi])
8888
library/bisect,42,:hi,all(val > x for val in a[i:hi])
@@ -272,8 +272,8 @@ whatsnew/3.2,,:feed,>>> urllib.parse.urlparse('http://[dead:beef:cafe:5417:affe:
272272
whatsnew/3.2,,:gz,">>> with tarfile.open(name='myarchive.tar.gz', mode='w:gz') as tf:"
273273
whatsnew/3.2,,:location,zope9-location = ${zope9:location}
274274
whatsnew/3.2,,:prefix,zope-conf = ${custom:prefix}/etc/zope.conf
275-
whatsnew/changelog,,:gz,": TarFile opened with external fileobj and ""w:gz"" mode didn't"
276-
whatsnew/changelog,,::,": Use ""127.0.0.1"" or ""::1"" instead of ""localhost"" as much as"
275+
whatsnew/changelog,,:gz,": TarFile opened with external fileobj and "
276+
whatsnew/changelog,,::,::1
277277
library/re,,`,!#$%&'*+-.^_`|~:
278278
library/re,,`,\!\#\$\%\&\'\*\+\-\.\^_\`\|\~\:
279279
library/tarfile,149,:xz,'x:xz'
@@ -288,8 +288,8 @@ library/xml.etree.elementtree,,:actor,"for actor in root.findall('real_person:ac
288288
library/xml.etree.elementtree,,:name,"name = actor.find('real_person:name', ns)"
289289
library/xml.etree.elementtree,,:character,"for char in actor.findall('role:character', ns):"
290290
library/zipapp,31,:main,"$ python -m zipapp myapp -m ""myapp:main"""
291-
library/zipapp,82,:fn,"argument should have the form ""pkg.mod:fn"", where ""pkg.mod"" is a"
292-
library/zipapp,155,:callable,"""pkg.module:callable"" and the archive will be run by importing"
291+
library/zipapp,,:fn,"pkg.mod:fn"
292+
library/zipapp,,:callable,"pkg.module:callable"
293293
library/stdtypes,,::,>>> m[::2].tolist()
294294
library/sys,,`,# ``wrapper`` creates a ``wrap(coro)`` coroutine:
295295
tutorial/venv,77,:c7b9645a6f35,"Python 3.4.3+ (3.4:c7b9645a6f35+, May 22 2015, 09:31:25)"

0 commit comments

Comments
 (0)