diff options
author | Julien Palard <julien@palard.fr> | 2021-01-04 13:43:38 +0100 |
---|---|---|
committer | Julien Palard <julien@palard.fr> | 2021-01-04 13:44:03 +0100 |
commit | b806721306b5fcbfbc373f9edf7cf18c12085ec2 (patch) | |
tree | 30911624a1795eaa435c55e5dc501108a99349a3 /Doc/library/difflib.rst | |
parent | eedeaef1f22d27264ce9b031da80fe2485e85e69 (diff) | |
download | cpython-git-revert-23827-backport-dcc997c-3.9.tar.gz |
Revert "[3.9] [doc] Fix erroneous backslashes in signatures and names (GH-23658)"revert-23827-backport-dcc997c-3.9
This partially reverts commit
e89993cff4e60fcf32643fc613d0544f3dbcd98a, which was removing
backslashes in documentations compiled with Sphinx < 3, used for
Python 3.8 and 3.9 docs.
Diffstat (limited to 'Doc/library/difflib.rst')
-rw-r--r-- | Doc/library/difflib.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/difflib.rst b/Doc/library/difflib.rst index a5ee0fb538..aa08988c8b 100644 --- a/Doc/library/difflib.rst +++ b/Doc/library/difflib.rst @@ -149,7 +149,7 @@ diffs. For comparing directories and files, see also, the :mod:`filecmp` module. contains a good example of its use. -.. function:: context_diff(a, b, fromfile='', tofile='', fromfiledate='', tofiledate='', n=3, lineterm='\n') +.. function:: context_diff(a, b, fromfile='', tofile='', fromfiledate='', tofiledate='', n=3, lineterm='\\n') Compare *a* and *b* (lists of strings); return a delta (a :term:`generator` generating the delta lines) in context diff format. @@ -279,7 +279,7 @@ diffs. For comparing directories and files, see also, the :mod:`filecmp` module. emu -.. function:: unified_diff(a, b, fromfile='', tofile='', fromfiledate='', tofiledate='', n=3, lineterm='\n') +.. function:: unified_diff(a, b, fromfile='', tofile='', fromfiledate='', tofiledate='', n=3, lineterm='\\n') Compare *a* and *b* (lists of strings); return a delta (a :term:`generator` generating the delta lines) in unified diff format. @@ -321,7 +321,7 @@ diffs. For comparing directories and files, see also, the :mod:`filecmp` module. See :ref:`difflib-interface` for a more detailed example. -.. function:: diff_bytes(dfunc, a, b, fromfile=b'', tofile=b'', fromfiledate=b'', tofiledate=b'', n=3, lineterm=b'\n') +.. function:: diff_bytes(dfunc, a, b, fromfile=b'', tofile=b'', fromfiledate=b'', tofiledate=b'', n=3, lineterm=b'\\n') Compare *a* and *b* (lists of bytes objects) using *dfunc*; yield a sequence of delta lines (also bytes) in the format returned by *dfunc*. |