diff options
author | Christian Clauss <cclauss@me.com> | 2021-10-07 14:09:41 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-07 14:09:41 (GMT) |
commit | 960e7b3ba13b26f45775551ab6f3c062b8666b74 (patch) | |
tree | b6f62c7f34c7abb52dc3704389e8b38087fb0545 /Objects/unicodeobject.c | |
parent | 71d56a72313d66e73ca1b61130d2e617235c8a93 (diff) | |
download | cpython-960e7b3ba13b26f45775551ab6f3c062b8666b74.zip cpython-960e7b3ba13b26f45775551ab6f3c062b8666b74.tar.gz cpython-960e7b3ba13b26f45775551ab6f3c062b8666b74.tar.bz2 |
[3.9] Fix typos in the Objects directory (GH-28766) (GH-28795)
(cherry picked from commit 5f401f10400123afa9171548c432ea3fc37c0736)
Automerge-Triggered-By: GH:JulienPalard
Diffstat (limited to 'Objects/unicodeobject.c')
-rw-r--r-- | Objects/unicodeobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 4fb06f9..38fb3ff 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -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; } |