]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.9] Fix typos in the Python directory (GH-28767) (GH-28798)
authorChristian Clauss <cclauss@me.com>
Thu, 7 Oct 2021 14:36:39 +0000 (16:36 +0200)
committerGitHub <noreply@github.com>
Thu, 7 Oct 2021 14:36:39 +0000 (07:36 -0700)
(cherry picked from commit db693df3e112c5a61f2cbef63eedce3a36520ded)

Automerge-Triggered-By: GH:JulienPalard
Python/fileutils.c
Python/initconfig.c
Python/pathconfig.c
Python/pythonrun.c

index d072363535c8011d45edaf6bd3872270f33d068e..26e97df4ef346148f4d5e15a0624954aef1363e8 100644 (file)
@@ -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.
 
index 3caed385ef6af5b9bf86ff8184151def31c7cedd..116ee33fee1130e2e347501e05285071324a4ace 100644 (file)
@@ -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 */
index 9a302213e77b654cee0595bd448b263d91c22e10..b2ce86e64ce8c2f42a794cab8453e25d3ce36122 100644 (file)
@@ -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;
     }
index 8cdbb3790fbcfa45bfbba229e8913ef7ee8f85ad..50c59b69f31fc8ab730a7a99d430c4f3b27739ed 100644 (file)
@@ -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)
  */