From 7bbd568681ac86afc5272c6b3af9f4049752126b Mon Sep 17 00:00:00 2001 From: Harmen Stoppels Date: Wed, 16 Jul 2025 15:25:31 +0200 Subject: [PATCH 1/4] posixmodule.c: fix `chdir` docstring Fixes the following issue: ``` >>> from docutils.core import publish_doctree >>> from posix import chdir >>> publish_doctree(chdir.__doc__) :5: (ERROR/3) Unexpected indentation. ``` --- Modules/posixmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index b570f81b7cf7c2..66baa1ad2d3470 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -3477,7 +3477,7 @@ Change the current working directory to the specified path. path may always be specified as a string. On some platforms, path may also be specified as an open file descriptor. - If this functionality is unavailable, using it raises an exception. +If this functionality is unavailable, using it raises an exception. [clinic start generated code]*/ static PyObject * From ea6d10b92eee8014bb07b941785f228c9d9d6c3f Mon Sep 17 00:00:00 2001 From: "blurb-it[bot]" <43283697+blurb-it[bot]@users.noreply.github.com> Date: Wed, 16 Jul 2025 13:28:37 +0000 Subject: [PATCH 2/4] =?UTF-8?q?=F0=9F=93=9C=F0=9F=A4=96=20Added=20by=20blu?= =?UTF-8?q?rb=5Fit.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Documentation/2025-07-16-13-28-30.gh-issue-136710.NrGnSZ.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 Misc/NEWS.d/next/Documentation/2025-07-16-13-28-30.gh-issue-136710.NrGnSZ.rst diff --git a/Misc/NEWS.d/next/Documentation/2025-07-16-13-28-30.gh-issue-136710.NrGnSZ.rst b/Misc/NEWS.d/next/Documentation/2025-07-16-13-28-30.gh-issue-136710.NrGnSZ.rst new file mode 100644 index 00000000000000..19c841db9048f8 --- /dev/null +++ b/Misc/NEWS.d/next/Documentation/2025-07-16-13-28-30.gh-issue-136710.NrGnSZ.rst @@ -0,0 +1 @@ +Fixes invalid rst in posix.chdir's docstring From ba192b78eb97e0298998d2a569150b50e5bc377f Mon Sep 17 00:00:00 2001 From: Zachary Ware Date: Wed, 16 Jul 2025 10:00:17 -0500 Subject: [PATCH 3/4] =?UTF-8?q?Revert=20"=F0=9F=93=9C=F0=9F=A4=96=20Added?= =?UTF-8?q?=20by=20blurb=5Fit."?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit ea6d10b92eee8014bb07b941785f228c9d9d6c3f. --- .../Documentation/2025-07-16-13-28-30.gh-issue-136710.NrGnSZ.rst | 1 - 1 file changed, 1 deletion(-) delete mode 100644 Misc/NEWS.d/next/Documentation/2025-07-16-13-28-30.gh-issue-136710.NrGnSZ.rst diff --git a/Misc/NEWS.d/next/Documentation/2025-07-16-13-28-30.gh-issue-136710.NrGnSZ.rst b/Misc/NEWS.d/next/Documentation/2025-07-16-13-28-30.gh-issue-136710.NrGnSZ.rst deleted file mode 100644 index 19c841db9048f8..00000000000000 --- a/Misc/NEWS.d/next/Documentation/2025-07-16-13-28-30.gh-issue-136710.NrGnSZ.rst +++ /dev/null @@ -1 +0,0 @@ -Fixes invalid rst in posix.chdir's docstring From 058abcd969de308d2a1b3e6d279e09310aa9c0d1 Mon Sep 17 00:00:00 2001 From: Zachary Ware Date: Wed, 16 Jul 2025 10:00:42 -0500 Subject: [PATCH 4/4] make clinic --- Modules/clinic/posixmodule.c.h | 4 ++-- Modules/posixmodule.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Modules/clinic/posixmodule.c.h b/Modules/clinic/posixmodule.c.h index 22f426c5192bf2..65f5f8c9267b6c 100644 --- a/Modules/clinic/posixmodule.c.h +++ b/Modules/clinic/posixmodule.c.h @@ -380,7 +380,7 @@ PyDoc_STRVAR(os_chdir__doc__, "\n" "path may always be specified as a string.\n" "On some platforms, path may also be specified as an open file descriptor.\n" -" If this functionality is unavailable, using it raises an exception."); +"If this functionality is unavailable, using it raises an exception."); #define OS_CHDIR_METHODDEF \ {"chdir", _PyCFunction_CAST(os_chdir), METH_FASTCALL|METH_KEYWORDS, os_chdir__doc__}, @@ -13440,4 +13440,4 @@ os__emscripten_debugger(PyObject *module, PyObject *Py_UNUSED(ignored)) #ifndef OS__EMSCRIPTEN_DEBUGGER_METHODDEF #define OS__EMSCRIPTEN_DEBUGGER_METHODDEF #endif /* !defined(OS__EMSCRIPTEN_DEBUGGER_METHODDEF) */ -/*[clinic end generated code: output=5341daae6581a62b input=a9049054013a1b77]*/ +/*[clinic end generated code: output=6cfddb3b77dc7a40 input=a9049054013a1b77]*/ diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 66baa1ad2d3470..47eaf5cd428a53 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -3482,7 +3482,7 @@ If this functionality is unavailable, using it raises an exception. static PyObject * os_chdir_impl(PyObject *module, path_t *path) -/*[clinic end generated code: output=3be6400eee26eaae input=1a4a15b4d12cb15d]*/ +/*[clinic end generated code: output=3be6400eee26eaae input=a74ceab5d72adf74]*/ { int result;