https://github.com/python/cpython/commit/04e0cc17d7a8ed6b7feace18b612623338694fd4
commit: 04e0cc17d7a8ed6b7feace18b612623338694fd4
branch: 3.15
author: Thejesh <[email protected]>
committer: StanFromIreland <[email protected]>
date: 2026-11-03T07:39:47Z
summary:

[3.15] Fix typos in `os.getppid`, `_zstd.get_frame_info` and `sysconfig` 
docstrings (GH-161181) (#161228)

(cherry picked from commit 126f33e9e0932438900f22ef77143f50ec2beb1e)

files:
M Lib/sysconfig/__init__.py
M Modules/_zstd/_zstdmodule.c
M Modules/_zstd/clinic/_zstdmodule.c.h
M Modules/clinic/posixmodule.c.h
M Modules/posixmodule.c

diff --git a/Lib/sysconfig/__init__.py b/Lib/sysconfig/__init__.py
index b93155131c62f5e..7565ea0e24b4462 100644
--- a/Lib/sysconfig/__init__.py
+++ b/Lib/sysconfig/__init__.py
@@ -364,7 +364,7 @@ def _get_sysconfigdata():
 
 
 def _installation_is_relocated():
-    """Is the Python installation running from a different prefix than what 
was targetted when building?"""
+    """Is the Python installation running from a different prefix than what 
was targeted when building?"""
     if os.name != 'posix':
         raise NotImplementedError('sysconfig._installation_is_relocated() is 
currently only supported on POSIX')
 
diff --git a/Modules/_zstd/_zstdmodule.c b/Modules/_zstd/_zstdmodule.c
index 94246dd93b17de1..3a728f905710e1a 100644
--- a/Modules/_zstd/_zstdmodule.c
+++ b/Modules/_zstd/_zstdmodule.c
@@ -498,12 +498,12 @@ _zstd.get_frame_info
     frame_buffer: Py_buffer
         A bytes-like object, containing the header of a Zstandard frame.
 
-Get Zstandard frame infomation from a frame header.
+Get Zstandard frame information from a frame header.
 [clinic start generated code]*/
 
 static PyObject *
 _zstd_get_frame_info_impl(PyObject *module, Py_buffer *frame_buffer)
-/*[clinic end generated code: output=56e033cf48001929 input=94b240583ae22ca5]*/
+/*[clinic end generated code: output=56e033cf48001929 input=6b350490b0f58ede]*/
 {
     uint64_t decompressed_size;
     uint32_t dict_id;
diff --git a/Modules/_zstd/clinic/_zstdmodule.c.h 
b/Modules/_zstd/clinic/_zstdmodule.c.h
index 766e1cfa776767b..feb0563b3228381 100644
--- a/Modules/_zstd/clinic/_zstdmodule.c.h
+++ b/Modules/_zstd/clinic/_zstdmodule.c.h
@@ -289,7 +289,7 @@ PyDoc_STRVAR(_zstd_get_frame_info__doc__,
 "get_frame_info($module, /, frame_buffer)\n"
 "--\n"
 "\n"
-"Get Zstandard frame infomation from a frame header.\n"
+"Get Zstandard frame information from a frame header.\n"
 "\n"
 "  frame_buffer\n"
 "    A bytes-like object, containing the header of a Zstandard frame.");
@@ -426,4 +426,4 @@ _zstd_set_parameter_types(PyObject *module, PyObject *const 
*args, Py_ssize_t na
 exit:
     return return_value;
 }
-/*[clinic end generated code: output=437b084f149e68e5 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=a6ad0ab41c507911 input=a9049054013a1b77]*/
diff --git a/Modules/clinic/posixmodule.c.h b/Modules/clinic/posixmodule.c.h
index 242934b21752d0c..cd1c09dcffaea19 100644
--- a/Modules/clinic/posixmodule.c.h
+++ b/Modules/clinic/posixmodule.c.h
@@ -5625,7 +5625,7 @@ PyDoc_STRVAR(os_getppid__doc__,
 "Return the parent\'s process id.\n"
 "\n"
 "If the parent process has already exited, Windows machines will still\n"
-"return its id; others systems will return the id of the \'init\' proces\n"
+"return its id; other systems will return the id of the \'init\' process\n"
 "(1).");
 
 #define OS_GETPPID_METHODDEF    \
@@ -13642,4 +13642,4 @@ os__emscripten_log(PyObject *module, PyObject *const 
*args, Py_ssize_t nargs, Py
 #ifndef OS__EMSCRIPTEN_LOG_METHODDEF
     #define OS__EMSCRIPTEN_LOG_METHODDEF
 #endif /* !defined(OS__EMSCRIPTEN_LOG_METHODDEF) */
-/*[clinic end generated code: output=1f7908f340f37bd1 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=e20d7b8b72e23b27 input=a9049054013a1b77]*/
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index 611edf9286e9649..7ee7cb5e10d6eb3 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -10108,13 +10108,13 @@ os.getppid
 Return the parent's process id.
 
 If the parent process has already exited, Windows machines will still
-return its id; others systems will return the id of the 'init' proces
+return its id; other systems will return the id of the 'init' process
 (1).
 [clinic start generated code]*/
 
 static PyObject *
 os_getppid_impl(PyObject *module)
-/*[clinic end generated code: output=43b2a946a8c603b4 input=e17c1de18f41316b]*/
+/*[clinic end generated code: output=43b2a946a8c603b4 input=158cc6dd661d54d9]*/
 {
 #ifdef MS_WINDOWS
     return win32_getppid();

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to