From 016b87d69d6a85f6cf7be83816434ed88e40f284 Mon Sep 17 00:00:00 2001 From: Thejesh <35212698+thejesh23@users.noreply.github.com> Date: Sun, 1 Nov 2026 16:24:57 -0800 Subject: [PATCH] Fix typos in os.getppid, _zstd.get_frame_info and sysconfig docstrings --- Lib/sysconfig/__init__.py | 2 +- Modules/_zstd/_zstdmodule.c | 4 ++-- Modules/_zstd/clinic/_zstdmodule.c.h | 4 ++-- Modules/clinic/posixmodule.c.h | 4 ++-- Modules/posixmodule.c | 4 ++-- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Lib/sysconfig/__init__.py b/Lib/sysconfig/__init__.py index dfed1cd1435c995..aeb0a904e9cdc84 100644 --- a/Lib/sysconfig/__init__.py +++ b/Lib/sysconfig/__init__.py @@ -369,7 +369,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 027768410b3f158..0c7db1ccaaee23b 100644 --- a/Modules/_zstd/_zstdmodule.c +++ b/Modules/_zstd/_zstdmodule.c @@ -493,12 +493,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 3c3e46e065f3ea7..e992a4d1b8f7971 100644 --- a/Modules/clinic/posixmodule.c.h +++ b/Modules/clinic/posixmodule.c.h @@ -5617,7 +5617,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 \ @@ -13763,4 +13763,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=8bf88a95035a0188 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=c92854d21c8f6290 input=a9049054013a1b77]*/ diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index b78bc1683538312..2949b3bc34e2637 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -10091,13 +10091,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();