[3.9] Fix typos in the Objects directory (GH-28766) (GH-28795)

(cherry picked from commit 5f401f1040)

Automerge-Triggered-By: GH:JulienPalard
This commit is contained in:
Christian Clauss 2021-10-07 16:09:41 +02:00 committed by GitHub
parent 71d56a7231
commit 960e7b3ba1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 8 additions and 8 deletions

View file

@ -7335,7 +7335,7 @@ PyUnicode_AsASCIIString(PyObject *unicode)
#endif
/* INT_MAX is the theoretical largest chunk (or INT_MAX / 2 when
transcoding from UTF-16), but INT_MAX / 4 perfoms better in
transcoding from UTF-16), but INT_MAX / 4 performs better in
both cases also and avoids partial characters overrunning the
length limit in MultiByteToWideChar on Windows */
#define DECODING_CHUNK_SIZE (INT_MAX/4)
@ -16121,7 +16121,7 @@ init_fs_codec(PyInterpreterState *interp)
_Py_error_handler error_handler;
error_handler = get_error_handler_wide(config->filesystem_errors);
if (error_handler == _Py_ERROR_UNKNOWN) {
PyErr_SetString(PyExc_RuntimeError, "unknow filesystem error handler");
PyErr_SetString(PyExc_RuntimeError, "unknown filesystem error handler");
return -1;
}