Fix a few remaining problems found by rstlint. · pythoncapi/cpython@06788c9 · GitHub
Skip to content

Commit 06788c9

Browse files
committed
Fix a few remaining problems found by rstlint.
1 parent d509788 commit 06788c9

11 files changed

Lines changed: 16 additions & 16 deletions

File tree

Doc/extending/newtypes.rst

Lines changed: 1 addition & 1 deletion

Doc/howto/regex.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ of each one.
611611
is to read? ::
612612

613613
charref = re.compile(r"""
614-
&[#] # Start of a numeric entity reference
614+
&[#] # Start of a numeric entity reference
615615
(
616616
0[0-7]+ # Octal form
617617
| [0-9]+ # Decimal form

Doc/library/bdb.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ Finally, the module defines the following functions:
335335

336336
Determine if there is an effective (active) breakpoint at this line of code.
337337
Return breakpoint number or 0 if none.
338-
338+
339339
Called only if we know there is a breakpoint at this location. Returns the
340340
breakpoint that was triggered and a flag that indicates if it is ok to delete
341341
a temporary breakpoint.

Doc/library/urllib.request.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ The :mod:`urllib.request` module defines the following functions:
4949
The urlopen function from the previous version, Python 2.6 and earlier, of
5050
the module urllib has been discontinued as urlopen can return the
5151
file-object as the previous. The proxy handling, which in earlier was passed
52-
as a dict parameter to urlopen can be availed by the use of `ProxyHandler`
53-
objects.
52+
as a dict parameter to urlopen can be availed by the use of
53+
:class:`ProxyHandler` objects.
5454

5555

5656
.. function:: install_opener(opener)

Doc/library/xmlrpc.client.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -513,8 +513,8 @@ transport. The following example shows how:
513513
self.proxy = proxy
514514
def make_connection(self, host):
515515
self.realhost = host
516-
h = http.client.HTTP(self.proxy)
517-
return h
516+
h = http.client.HTTP(self.proxy)
517+
return h
518518
def send_request(self, connection, handler, request_body):
519519
connection.putrequest("POST", 'http://%s%s' % (self.realhost, handler))
520520
def send_host(self, connection, host):

Doc/reference/lexical_analysis.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ Some examples of integer literals::
608608

609609
7 2147483647 0o177 0b100110111
610610
3 79228162514264337593543950336 0o377 0x100000000
611-
79228162514264337593543950336 0xdeadbeef
611+
79228162514264337593543950336 0xdeadbeef
612612

613613

614614
.. _floating:

Doc/reference/simple_stmts.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -871,8 +871,8 @@ The :keyword:`nonlocal` statement
871871
nonlocal_stmt: "nonlocal" `identifier` ("," `identifier`)*
872872

873873
.. XXX add when implemented
874-
: ["=" (`target_list` "=")+ `expression_list`]
875-
: | "nonlocal" `identifier` `augop` `expression_list`
874+
: ["=" (`target_list` "=")+ expression_list]
875+
: | "nonlocal" identifier augop expression_list
876876
877877
The :keyword:`nonlocal` statement causes the listed identifiers to refer to
878878
previously bound variables in the nearest enclosing scope. This is important

Doc/tutorial/classes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,7 @@ easy to create::
789789
f
790790
l
791791
o
792-
g
792+
g
793793

794794
Anything that can be done with generators can also be done with class based
795795
iterators as described in the previous section. What makes generators so

Doc/tutorial/datastructures.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ with the :func:`zip` function. ::
519519
>>> answers = ['lancelot', 'the holy grail', 'blue']
520520
>>> for q, a in zip(questions, answers):
521521
... print('What is your {0}? It is {1}.'.format(q, a))
522-
...
522+
...
523523
What is your name? It is lancelot.
524524
What is your quest? It is the holy grail.
525525
What is your favorite color? It is blue.
@@ -542,7 +542,7 @@ returns a new sorted list while leaving the source unaltered. ::
542542
>>> basket = ['apple', 'orange', 'apple', 'pear', 'orange', 'banana']
543543
>>> for f in sorted(set(basket)):
544544
... print(f)
545-
...
545+
...
546546
apple
547547
banana
548548
orange

Doc/using/unix.rst

Lines changed: 2 additions & 2 deletions

0 commit comments

Comments
 (0)