diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2013-10-13 23:09:00 +0300 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-10-13 23:09:00 +0300 |
commit | b33336f65014f32c3e9873c32618a3bf656f3445 (patch) | |
tree | 023edd04ecc9b83b48a83594f2fd4f69d7ef709a /Doc/library/difflib.rst | |
parent | 7378d6374c286c86daf4389fbbb4ee2d52ac3401 (diff) | |
download | cpython-git-b33336f65014f32c3e9873c32618a3bf656f3445.tar.gz |
Issue #18758: Fixed and improved cross-references.
Diffstat (limited to 'Doc/library/difflib.rst')
-rw-r--r-- | Doc/library/difflib.rst | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/Doc/library/difflib.rst b/Doc/library/difflib.rst index f3b23e012c..878d8e67df 100644 --- a/Doc/library/difflib.rst +++ b/Doc/library/difflib.rst @@ -632,10 +632,12 @@ The :class:`Differ` class has this constructor: Compare two sequences of lines, and generate the delta (a sequence of lines). - Each sequence must contain individual single-line strings ending with newlines. - Such sequences can be obtained from the :meth:`readlines` method of file-like - objects. The delta generated also consists of newline-terminated strings, ready - to be printed as-is via the :meth:`writelines` method of a file-like object. + Each sequence must contain individual single-line strings ending with + newlines. Such sequences can be obtained from the + :meth:`~file.readlines` method of file-like objects. The delta + generated also consists of newline-terminated strings, ready to be + printed as-is via the :meth:`~file.writelines` method of a + file-like object. .. _differ-examples: @@ -645,7 +647,7 @@ Differ Example This example compares two texts. First we set up the texts, sequences of individual single-line strings ending with newlines (such sequences can also be -obtained from the :meth:`readlines` method of file-like objects): +obtained from the :meth:`~file.readlines` method of file-like objects): >>> text1 = ''' 1. Beautiful is better than ugly. ... 2. Explicit is better than implicit. |