]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix typo in "expected" word in few source files (#104034)
authorchgnrdv <52372310+chgnrdv@users.noreply.github.com>
Mon, 1 May 2023 15:45:50 +0000 (18:45 +0300)
committerGitHub <noreply@github.com>
Mon, 1 May 2023 15:45:50 +0000 (09:45 -0600)
Include/unicodeobject.h
Modules/_ctypes/callproc.c

index 74474f5bb8f976f5b865be4b82ef2b10b3598bd2..5839c747a292753ba3e3251a02908ec9d581383d 100644 (file)
@@ -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.
 
 */
 
index 93bc784df5386f3f7da5fa7cdce637ed84c7f6cc..f10cf58216acf7aba60eb132b6e7194b155dea1c 100644 (file)
@@ -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) {