]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] gh-138516: fix typo in OrderedDict exception msg (GH-138517) (#138523)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 5 Sep 2025 08:02:21 +0000 (10:02 +0200)
committerGitHub <noreply@github.com>
Fri, 5 Sep 2025 08:02:21 +0000 (11:02 +0300)
gh-138516: fix typo in OrderedDict exception msg (GH-138517)
(cherry picked from commit e9c2a357fba72e46e965ecaa54e78be69c6c5d6b)

Co-authored-by: asas1asas200 <asas1asas200@gmail.com>
Objects/odictobject.c

index 02fcbbaa0d4536aaa2bc7543680fce874aea0347..896e6e3c30f9c919b92d1687df37cfa59ce3b773 100644 (file)
@@ -1517,7 +1517,7 @@ odict_init(PyObject *self, PyObject *args, PyObject *kwds)
     if (len == -1)
         return -1;
     if (len > 1) {
-        const char *msg = "expected at most 1 arguments, got %zd";
+        const char *msg = "expected at most 1 argument, got %zd";
         PyErr_Format(PyExc_TypeError, msg, len);
         return -1;
     }