Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Doc/library/difflib.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down
Loading