Skip to content

Commit 2a884ce

Browse files
authored
Fix typo in "expected" word in few source files (#104034)
1 parent d5a9707 commit 2a884ce

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Include/unicodeobject.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ PyAPI_FUNC(PyObject*) PyUnicode_AsLatin1String(
626626

627627
/* --- ASCII Codecs -------------------------------------------------------
628628
629-
Only 7-bit ASCII data is excepted. All other codes generate errors.
629+
Only 7-bit ASCII data is expected. All other codes generate errors.
630630
631631
*/
632632

Modules/_ctypes/callproc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1823,7 +1823,7 @@ resize(PyObject *self, PyObject *args)
18231823
dict = PyObject_stgdict((PyObject *)obj);
18241824
if (dict == NULL) {
18251825
PyErr_SetString(PyExc_TypeError,
1826-
"excepted ctypes instance");
1826+
"expected ctypes instance");
18271827
return NULL;
18281828
}
18291829
if (size < dict->size) {

0 commit comments

Comments
 (0)