diff --git a/Doc/library/difflib.rst b/Doc/library/difflib.rst index 85357008b6e14f..5f5b5db362597e 100644 --- a/Doc/library/difflib.rst +++ b/Doc/library/difflib.rst @@ -720,7 +720,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) @@ -735,7 +735,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)