]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-136710: Fix bad indentation in `os.chdir` docstring (GH-136721)
authorZachary Ware <zach@python.org>
Wed, 16 Jul 2025 16:33:46 +0000 (11:33 -0500)
committerGitHub <noreply@github.com>
Wed, 16 Jul 2025 16:33:46 +0000 (16:33 +0000)
(cherry picked from commit bde808ad6ba5eee8a6201983cf071449d7ce7e39)

Co-authored-by: Harmen Stoppels <harmenstoppels@gmail.com>
Modules/clinic/posixmodule.c.h
Modules/posixmodule.c

index 25d242dbd4269945b9f49f6c5f303e85b747d92c..2aa771ab62bc10b287a3d53303348950c9059798 100644 (file)
@@ -371,7 +371,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__},
@@ -12879,4 +12879,4 @@ os__is_inputhook_installed(PyObject *module, PyObject *Py_UNUSED(ignored))
 #ifndef OS__SUPPORTS_VIRTUAL_TERMINAL_METHODDEF
     #define OS__SUPPORTS_VIRTUAL_TERMINAL_METHODDEF
 #endif /* !defined(OS__SUPPORTS_VIRTUAL_TERMINAL_METHODDEF) */
-/*[clinic end generated code: output=616483d525403f7c input=a9049054013a1b77]*/
+/*[clinic end generated code: output=28706eafe31b28c1 input=a9049054013a1b77]*/
index dc7d1e8d63be1fb7ada7afed96329208acb537a3..f31659808d7378a108460e9a459ba58d5745329b 100644 (file)
@@ -3374,12 +3374,12 @@ 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 *
 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;