]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-43689: improve documentation for Differ (GH-25132)
authorJürgen Gmach <juergen.gmach@googlemail.com>
Tue, 10 May 2022 20:57:12 +0000 (22:57 +0200)
committerGitHub <noreply@github.com>
Tue, 10 May 2022 20:57:12 +0000 (13:57 -0700)
Lines beginning with ``?`` try to help understanding the given diff.

The output can be hard to understand when it contains whitespace characters, such as spaces, tabs or line breaks.

While previously only tabs were mentioned, now all are listed.

Automerge-Triggered-By: GH:rhettinger
Doc/library/difflib.rst
Misc/NEWS.d/next/Documentation/2021-04-01-08-09-34.bpo-43689.mqCfLe.rst [new file with mode: 0644]

index aa08988c8b36f71e574a4909dff4a7c74190e29f..10f8808d33b160f21aae49c4907e4163075d5808 100644 (file)
@@ -79,7 +79,7 @@ diffs. For comparing directories and files, see also, the :mod:`filecmp` module.
 
    Lines beginning with '``?``' attempt to guide the eye to intraline differences,
    and were not present in either input sequence. These lines can be confusing if
-   the sequences contain tab characters.
+   the sequences contain whitespace characters, such as spaces, tabs or line breaks.
 
 
 .. class:: HtmlDiff
diff --git a/Misc/NEWS.d/next/Documentation/2021-04-01-08-09-34.bpo-43689.mqCfLe.rst b/Misc/NEWS.d/next/Documentation/2021-04-01-08-09-34.bpo-43689.mqCfLe.rst
new file mode 100644 (file)
index 0000000..5cc13d7
--- /dev/null
@@ -0,0 +1 @@
+The ``Differ`` documentation now also mentions other whitespace characters, which make it harder to understand the diff output.