Skip to content

Commit 78efc9a

Browse files
authored
[3.9] Fix typos in the Python directory (GH-28767) (GH-28798)
(cherry picked from commit db693df) Automerge-Triggered-By: GH:JulienPalard
1 parent 960e7b3 commit 78efc9a

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Python/fileutils.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ check_force_ascii(void)
223223
ch = (unsigned char)0xA7;
224224
res = _Py_mbstowcs(&wch, (char*)&ch, 1);
225225
if (res != DECODE_ERROR && wch == L'\xA7') {
226-
/* On HP-UX withe C locale or the POSIX locale,
226+
/* On HP-UX with C locale or the POSIX locale,
227227
nl_langinfo(CODESET) announces "roman8", whereas mbstowcs() uses
228228
Latin1 encoding in practice. Force ASCII in this case.
229229

Python/initconfig.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2135,7 +2135,7 @@ warnoptions_append(PyConfig *config, PyWideStringList *options,
21352135
{
21362136
/* config_init_warnoptions() add existing config warnoptions at the end:
21372137
ensure that the new option is not already present in this list to
2138-
prevent change the options order whne config_init_warnoptions() is
2138+
prevent change the options order when config_init_warnoptions() is
21392139
called twice. */
21402140
if (_PyWideStringList_Find(&config->warnoptions, option)) {
21412141
/* Already present: do nothing */

Python/pathconfig.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ config_calculate_pathconfig(PyConfig *config)
331331
#undef COPY_ATTR
332332

333333
#ifdef MS_WINDOWS
334-
/* If a ._pth file is found: isolated and site_import are overriden */
334+
/* If a ._pth file is found: isolated and site_import are overridden */
335335
if (pathconfig.isolated != -1) {
336336
config->isolated = pathconfig.isolated;
337337
}

Python/pythonrun.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/* Top level execution of Python code (including in __main__) */
33

44
/* To help control the interfaces between the startup, execution and
5-
* shutdown code, the phases are split across separate modules (boostrap,
5+
* shutdown code, the phases are split across separate modules (bootstrap,
66
* pythonrun, shutdown)
77
*/
88

0 commit comments

Comments
 (0)