[Python-checkins] [3.9] Fix typos in the Python directory (GH-28767) (GH-28798)

miss-islington webhook-mailer at python.org
Thu Oct 7 10:36:48 EDT 2021


https://github.com/python/cpython/commit/78efc9aff254ec7e7a7b6512293674899e5d3615
commit: 78efc9aff254ec7e7a7b6512293674899e5d3615
branch: 3.9
author: Christian Clauss <cclauss at me.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2021-10-07T07:36:39-07:00
summary:

[3.9] Fix typos in the Python directory (GH-28767) (GH-28798)



(cherry picked from commit db693df3e112c5a61f2cbef63eedce3a36520ded)

Automerge-Triggered-By: GH:JulienPalard

files:
M Python/fileutils.c
M Python/initconfig.c
M Python/pathconfig.c
M Python/pythonrun.c

diff --git a/Python/fileutils.c b/Python/fileutils.c
index d072363535c80..26e97df4ef346 100644
--- a/Python/fileutils.c
+++ b/Python/fileutils.c
@@ -223,7 +223,7 @@ check_force_ascii(void)
         ch = (unsigned char)0xA7;
         res = _Py_mbstowcs(&wch, (char*)&ch, 1);
         if (res != DECODE_ERROR && wch == L'\xA7') {
-            /* On HP-UX withe C locale or the POSIX locale,
+            /* On HP-UX with C locale or the POSIX locale,
                nl_langinfo(CODESET) announces "roman8", whereas mbstowcs() uses
                Latin1 encoding in practice. Force ASCII in this case.
 
diff --git a/Python/initconfig.c b/Python/initconfig.c
index 3caed385ef6af..116ee33fee113 100644
--- a/Python/initconfig.c
+++ b/Python/initconfig.c
@@ -2135,7 +2135,7 @@ warnoptions_append(PyConfig *config, PyWideStringList *options,
 {
     /* config_init_warnoptions() add existing config warnoptions at the end:
        ensure that the new option is not already present in this list to
-       prevent change the options order whne config_init_warnoptions() is
+       prevent change the options order when config_init_warnoptions() is
        called twice. */
     if (_PyWideStringList_Find(&config->warnoptions, option)) {
         /* Already present: do nothing */
diff --git a/Python/pathconfig.c b/Python/pathconfig.c
index 9a302213e77b6..b2ce86e64ce8c 100644
--- a/Python/pathconfig.c
+++ b/Python/pathconfig.c
@@ -331,7 +331,7 @@ config_calculate_pathconfig(PyConfig *config)
 #undef COPY_ATTR
 
 #ifdef MS_WINDOWS
-    /* If a ._pth file is found: isolated and site_import are overriden */
+    /* If a ._pth file is found: isolated and site_import are overridden */
     if (pathconfig.isolated != -1) {
         config->isolated = pathconfig.isolated;
     }
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index 8cdbb3790fbcf..50c59b69f31fc 100644
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -2,7 +2,7 @@
 /* Top level execution of Python code (including in __main__) */
 
 /* To help control the interfaces between the startup, execution and
- * shutdown code, the phases are split across separate modules (boostrap,
+ * shutdown code, the phases are split across separate modules (bootstrap,
  * pythonrun, shutdown)
  */
 



More information about the Python-checkins mailing list