mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Fix typos in the Objects directory (GH-28766)
This commit is contained in:
parent
db72e58ea5
commit
5f401f1040
11 changed files with 14 additions and 14 deletions
|
@ -7349,7 +7349,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)
|
||||
|
@ -15876,7 +15876,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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue