https://github.com/python/cpython/commit/e2514cb77fcbdb5c733ae2532802a78e7cb08e79 commit: e2514cb77fcbdb5c733ae2532802a78e7cb08e79 branch: 3.10 author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com> committer: miss-islington <31488909+miss-islington at users.noreply.github.com> date: 2022年04月27日T15:19:43-07:00 summary: Correct method name typo (GH-91970) (cherry picked from commit c6b84a727c9299f24edbab4105ce47e9f2bae199) Co-authored-by: Simon de Vlieger <cmdr at supakeen.com> files: M Lib/difflib.py diff --git a/Lib/difflib.py b/Lib/difflib.py index afd8a0c7c5b61..ba0b256969ebf 100644 --- a/Lib/difflib.py +++ b/Lib/difflib.py @@ -837,7 +837,7 @@ def compare(self, a, b): Each sequence must contain individual single-line strings ending with newlines. Such sequences can be obtained from the `readlines()` method of file-like objects. The delta generated also consists of newline- - terminated strings, ready to be printed as-is via the writeline() + terminated strings, ready to be printed as-is via the writelines() method of a file-like object. Example: