]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.10] bpo-37602: Clarify that the lib2to3 nonzero fixer changes only definitions...
authorIrit Katriel <1055913+iritkatriel@users.noreply.github.com>
Mon, 13 Dec 2021 10:47:38 +0000 (10:47 +0000)
committerGitHub <noreply@github.com>
Mon, 13 Dec 2021 10:47:38 +0000 (10:47 +0000)
(cherry picked from commit 481f3ffdbe40bd19677a1ba0ac2e7cece8949b47)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Doc/library/2to3.rst

index 2a13776e29336c941031c7c95389439eb56e9c56..5e1b010e9bb5f2bd0efa69a5e8f1b0dc46c1d5e4 100644 (file)
@@ -333,7 +333,8 @@ and off individually.  They are described here in more detail.
 
 .. 2to3fixer:: nonzero
 
-   Renames :meth:`__nonzero__` to :meth:`~object.__bool__`.
+   Renames definitions of methods called :meth:`__nonzero__`
+   to :meth:`~object.__bool__`.
 
 .. 2to3fixer:: numliterals