mirror of
https://github.com/python/cpython.git
synced 2025-10-07 15:42:02 +00:00
Fix typo in "expected" word in few source files (#104034)
This commit is contained in:
parent
d5a97074d2
commit
2a884ceb36
2 changed files with 2 additions and 2 deletions
|
@ -626,7 +626,7 @@ PyAPI_FUNC(PyObject*) PyUnicode_AsLatin1String(
|
||||||
|
|
||||||
/* --- ASCII Codecs -------------------------------------------------------
|
/* --- 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.
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1823,7 +1823,7 @@ resize(PyObject *self, PyObject *args)
|
||||||
dict = PyObject_stgdict((PyObject *)obj);
|
dict = PyObject_stgdict((PyObject *)obj);
|
||||||
if (dict == NULL) {
|
if (dict == NULL) {
|
||||||
PyErr_SetString(PyExc_TypeError,
|
PyErr_SetString(PyExc_TypeError,
|
||||||
"excepted ctypes instance");
|
"expected ctypes instance");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
if (size < dict->size) {
|
if (size < dict->size) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue