[Python-checkins] Fix typo in "expected" word in few source files (#104034)

carljm webhook-mailer at python.org
Mon May 1 11:46:19 EDT 2023


https://github.com/python/cpython/commit/2a884ceb36e799c900129d4b5b6248262004efb5
commit: 2a884ceb36e799c900129d4b5b6248262004efb5
branch: main
author: chgnrdv <52372310+chgnrdv at users.noreply.github.com>
committer: carljm <carl at oddbird.net>
date: 2023-05-01T09:45:50-06:00
summary:

Fix typo in "expected" word in few source files (#104034)

files:
M Include/unicodeobject.h
M Modules/_ctypes/callproc.c

diff --git a/Include/unicodeobject.h b/Include/unicodeobject.h
index 74474f5bb8f9..5839c747a292 100644
--- a/Include/unicodeobject.h
+++ b/Include/unicodeobject.h
@@ -626,7 +626,7 @@ PyAPI_FUNC(PyObject*) PyUnicode_AsLatin1String(
 
 /* --- ASCII Codecs -------------------------------------------------------
 
-   Only 7-bit ASCII data is excepted. All other codes generate errors.
+   Only 7-bit ASCII data is expected. All other codes generate errors.
 
 */
 
diff --git a/Modules/_ctypes/callproc.c b/Modules/_ctypes/callproc.c
index 93bc784df538..f10cf58216ac 100644
--- a/Modules/_ctypes/callproc.c
+++ b/Modules/_ctypes/callproc.c
@@ -1823,7 +1823,7 @@ resize(PyObject *self, PyObject *args)
     dict = PyObject_stgdict((PyObject *)obj);
     if (dict == NULL) {
         PyErr_SetString(PyExc_TypeError,
-                        "excepted ctypes instance");
+                        "expected ctypes instance");
         return NULL;
     }
     if (size < dict->size) {



More information about the Python-checkins mailing list