summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIrit Katriel <1055913+iritkatriel@users.noreply.github.com>2021-12-13 10:47:38 (GMT)
committerGitHub <noreply@github.com>2021-12-13 10:47:38 (GMT)
commit310bae628a9b065d29dbdbf4f7f5beb9fcc72ace (patch)
tree1efe1ca98aaf65e92b7941aab13dd0ad134a5576
parente55deaabd8de338138cf29aea6890996e794c997 (diff)
downloadcpython-310bae628a9b065d29dbdbf4f7f5beb9fcc72ace.zip
cpython-310bae628a9b065d29dbdbf4f7f5beb9fcc72ace.tar.gz
cpython-310bae628a9b065d29dbdbf4f7f5beb9fcc72ace.tar.bz2
[3.10] bpo-37602: Clarify that the lib2to3 nonzero fixer changes only definitions (GH-30075) (GH-30085)
(cherry picked from commit 481f3ffdbe40bd19677a1ba0ac2e7cece8949b47) Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
-rw-r--r--Doc/library/2to3.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/library/2to3.rst b/Doc/library/2to3.rst
index 2a13776..5e1b010 100644
--- a/Doc/library/2to3.rst
+++ b/Doc/library/2to3.rst
@@ -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