From: chgnrdv <52372310+chgnrdv@users.noreply.github.com> Date: Mon, 1 May 2023 15:45:50 +0000 (+0300) Subject: Fix typo in "expected" word in few source files (#104034) X-Git-Tag: v3.12.0b1~345 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2a884ceb36e799c900129d4b5b6248262004efb5;p=thirdparty%2FPython%2Fcpython.git Fix typo in "expected" word in few source files (#104034) --- 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) {