mirror of
https://github.com/python/cpython.git
synced 2026-06-06 01:41:04 +00:00
gh-110631: Fix wrong blocks indentation in difflib.rst (GH-110885)
This commit is contained in:
parent
9f225e2c34
commit
6544bf4263
1 changed files with 2 additions and 2 deletions
|
|
@ -724,7 +724,7 @@ Finally, we compare the two:
|
|||
|
||||
>>> result = list(d.compare(text1, text2))
|
||||
|
||||
``result`` is a list of strings, so let's pretty-print it:
|
||||
``result`` is a list of strings, so let's pretty-print it::
|
||||
|
||||
>>> from pprint import pprint
|
||||
>>> pprint(result)
|
||||
|
|
@ -739,7 +739,7 @@ Finally, we compare the two:
|
|||
'? ++++ ^ ^\n',
|
||||
'+ 5. Flat is better than nested.\n']
|
||||
|
||||
As a single multi-line string it looks like this:
|
||||
As a single multi-line string it looks like this::
|
||||
|
||||
>>> import sys
|
||||
>>> sys.stdout.writelines(result)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue