diff options
author | chgnrdv <52372310+chgnrdv@users.noreply.github.com> | 2023-05-01 15:45:50 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-01 15:45:50 (GMT) |
commit | 2a884ceb36e799c900129d4b5b6248262004efb5 (patch) | |
tree | 41930495a50c03412a1a6257e7374682a7d2e945 | |
parent | d5a97074d24cd14cb2a35a2b1ad3074863cde264 (diff) | |
download | cpython-2a884ceb36e799c900129d4b5b6248262004efb5.zip cpython-2a884ceb36e799c900129d4b5b6248262004efb5.tar.gz cpython-2a884ceb36e799c900129d4b5b6248262004efb5.tar.bz2 |
Fix typo in "expected" word in few source files (#104034)
-rw-r--r-- | Include/unicodeobject.h | 2 | ||||
-rw-r--r-- | Modules/_ctypes/callproc.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Include/unicodeobject.h b/Include/unicodeobject.h index 74474f5..5839c74 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 93bc784..f10cf58 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) { |