[Python-checkins] [3.12] Fix grammar and improve clarity for an deprecation message. (GH-105457) (#105458)

rhettinger webhook-mailer at python.org
Wed Jun 7 14:13:41 EDT 2023


https://github.com/python/cpython/commit/d3092573a827ec9b8cf2094f0fddc2eaa95a5127
commit: d3092573a827ec9b8cf2094f0fddc2eaa95a5127
branch: 3.12
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: rhettinger <rhettinger at users.noreply.github.com>
date: 2023-06-07T12:41:04-05:00
summary:

[3.12] Fix grammar and improve clarity for an deprecation message. (GH-105457) (#105458)

files:
M Modules/itertoolsmodule.c

diff --git a/Modules/itertoolsmodule.c b/Modules/itertoolsmodule.c
index 4a6d1314b386..ae63bae79d5d 100644
--- a/Modules/itertoolsmodule.c
+++ b/Modules/itertoolsmodule.c
@@ -98,8 +98,8 @@ class itertools.pairwise "pairwiseobject *" "clinic_state()->pairwise_type"
 #define ITERTOOL_PICKLE_DEPRECATION                                           \
     if (PyErr_WarnEx(                                                         \
             PyExc_DeprecationWarning,                                         \
-            "Itertool pickle/copy/deepcopy support "                          \
-            "will be removed in a Python 3.14.", 1) < 0) {                    \
+            "Pickle, copy, and deepcopy support will be "                     \
+            "removed from itertools in Python 3.14.", 1) < 0) {               \
         return NULL;                                                          \
     }
 



More information about the Python-checkins mailing list