[Python-checkins] bpo-37602: Clarify that the lib2to3 nonzero fixer changes only definitions (GH-30075) (GH-30083)
iritkatriel
webhook-mailer at python.org
Mon Dec 13 05:46:00 EST 2021
https://github.com/python/cpython/commit/80eb8ab81fbe46497f16071b311c9d8e13ec2d3b
commit: 80eb8ab81fbe46497f16071b311c9d8e13ec2d3b
branch: 3.9
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: iritkatriel <1055913+iritkatriel at users.noreply.github.com>
date: 2021-12-13T10:45:55Z
summary:
bpo-37602: Clarify that the lib2to3 nonzero fixer changes only definitions (GH-30075) (GH-30083)
(cherry picked from commit 481f3ffdbe40bd19677a1ba0ac2e7cece8949b47)
Co-authored-by: Irit Katriel <1055913+iritkatriel at users.noreply.github.com>
files:
M Doc/library/2to3.rst
diff --git a/Doc/library/2to3.rst b/Doc/library/2to3.rst
index 1d7bd26287290..36c051db50dca 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
More information about the Python-checkins
mailing list