@@ -149,7 +149,7 @@ diffs. For comparing directories and files, see also, the :mod:`filecmp` module.
149
149
contains a good example of its use.
150
150
151
151
152
- .. function :: context_diff(a, b, fromfile='', tofile='', fromfiledate='', tofiledate='', n=3, lineterm='\n')
152
+ .. function :: context_diff(a, b, fromfile='', tofile='', fromfiledate='', tofiledate='', n=3, lineterm='\\ n')
153
153
154
154
Compare *a * and *b * (lists of strings); return a delta (a :term: `generator `
155
155
generating the delta lines) in context diff format.
@@ -279,7 +279,7 @@ diffs. For comparing directories and files, see also, the :mod:`filecmp` module.
279
279
emu
280
280
281
281
282
- .. function :: unified_diff(a, b, fromfile='', tofile='', fromfiledate='', tofiledate='', n=3, lineterm='\n')
282
+ .. function :: unified_diff(a, b, fromfile='', tofile='', fromfiledate='', tofiledate='', n=3, lineterm='\\ n')
283
283
284
284
Compare *a * and *b * (lists of strings); return a delta (a :term: `generator `
285
285
generating the delta lines) in unified diff format.
@@ -321,7 +321,7 @@ diffs. For comparing directories and files, see also, the :mod:`filecmp` module.
321
321
322
322
See :ref: `difflib-interface ` for a more detailed example.
323
323
324
- .. function :: diff_bytes(dfunc, a, b, fromfile=b'', tofile=b'', fromfiledate=b'', tofiledate=b'', n=3, lineterm=b'\n')
324
+ .. function :: diff_bytes(dfunc, a, b, fromfile=b'', tofile=b'', fromfiledate=b'', tofiledate=b'', n=3, lineterm=b'\\ n')
325
325
326
326
Compare *a * and *b * (lists of bytes objects) using *dfunc *; yield a
327
327
sequence of delta lines (also bytes) in the format returned by *dfunc *.
0 commit comments