Skip to content

Commit 1a1d99c

Browse files
committed
Fix wrong markup and list numbers.
1 parent 84b7e9e commit 1a1d99c

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

Doc/library/difflib.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,7 @@ Finally, we compare the two:
718718

719719
>>> result = list(d.compare(text1, text2))
720720

721-
``result`` is a list of strings, so let's pretty-print it:
721+
``result`` is a list of strings, so let's pretty-print it::
722722

723723
>>> from pprint import pprint
724724
>>> pprint(result)
@@ -733,7 +733,7 @@ Finally, we compare the two:
733733
'? ++++ ^ ^\n',
734734
'+ 5. Flat is better than nested.\n']
735735

736-
As a single multi-line string it looks like this:
736+
As a single multi-line string it looks like this::
737737

738738
>>> import sys
739739
>>> sys.stdout.writelines(result)

Doc/reference/compound_stmts.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1107,7 +1107,7 @@ subject value:
11071107
If only keyword patterns are present, they are processed as follows,
11081108
one by one:
11091109

1110-
I. The keyword is looked up as an attribute on the subject.
1110+
1. The keyword is looked up as an attribute on the subject.
11111111

11121112
* If this raises an exception other than :exc:`AttributeError`, the
11131113
exception bubbles up.
@@ -1119,13 +1119,13 @@ subject value:
11191119
pattern fails; if this succeeds, the match proceeds to the next keyword.
11201120

11211121

1122-
II. If all keyword patterns succeed, the class pattern succeeds.
1122+
2. If all keyword patterns succeed, the class pattern succeeds.
11231123

11241124
If any positional patterns are present, they are converted to keyword
11251125
patterns using the :data:`~object.__match_args__` attribute on the class
11261126
``name_or_attr`` before matching:
11271127

1128-
I. The equivalent of ``getattr(cls, "__match_args__", ())`` is called.
1128+
1. The equivalent of ``getattr(cls, "__match_args__", ())`` is called.
11291129

11301130
* If this raises an exception, the exception bubbles up.
11311131

@@ -1143,8 +1143,8 @@ subject value:
11431143

11441144
.. seealso:: :ref:`class-pattern-matching`
11451145

1146-
II. Once all positional patterns have been converted to keyword patterns,
1147-
the match proceeds as if there were only keyword patterns.
1146+
2. Once all positional patterns have been converted to keyword patterns,
1147+
the match proceeds as if there were only keyword patterns.
11481148

11491149
For the following built-in types the handling of positional subpatterns is
11501150
different:

0 commit comments

Comments
 (0)