Skip to content

Commit fe1c5ba

Browse files
authored
bpo-43689: improve documentation for Differ (pythonGH-25132)
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
1 parent 07b3492 commit fe1c5ba

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Doc/library/difflib.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ diffs. For comparing directories and files, see also, the :mod:`filecmp` module.
7979

8080
Lines beginning with '``?``' attempt to guide the eye to intraline differences,
8181
and were not present in either input sequence. These lines can be confusing if
82-
the sequences contain tab characters.
82+
the sequences contain whitespace characters, such as spaces, tabs or line breaks.
8383

8484

8585
.. class:: HtmlDiff
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
The ``Differ`` documentation now also mentions other whitespace characters, which make it harder to understand the diff output.

0 commit comments

Comments
 (0)