From 6a5b45889b9e540c0b60064d068736ffcbe7f8aa Mon Sep 17 00:00:00 2001 From: Ezio Melotti Date: Sat, 6 Jun 2026 01:02:10 +0800 Subject: [PATCH] gh-110631: Fix wrong blocks indentation in difflib.rst (GH-110885) (cherry picked from commit 6544bf426335d1bf76d30ed0f1277170ff220122) Co-authored-by: Ezio Melotti --- Doc/library/difflib.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/library/difflib.rst b/Doc/library/difflib.rst index 8b812c173b59536..25edb40e35a630a 100644 --- a/Doc/library/difflib.rst +++ b/Doc/library/difflib.rst @@ -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)