]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-136710: Fix bad indentation in `os.chdir` docstring (GH-136709)
authorHarmen Stoppels <harmenstoppels@gmail.com>
Wed, 16 Jul 2025 15:30:10 +0000 (17:30 +0200)
committerGitHub <noreply@github.com>
Wed, 16 Jul 2025 15:30:10 +0000 (15:30 +0000)
Modules/clinic/posixmodule.c.h
Modules/posixmodule.c

index 22f426c5192bf28e746d7480f101094dc95666ed..65f5f8c9267b6cbf28ed145a31632909da73fc43 100644 (file)
@@ -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]*/
index b570f81b7cf7c2ad704982e45d66047a6d7e2ad1..47eaf5cd428a53e04d6cea05670e928ba560ae69 100644 (file)
@@ -3477,12 +3477,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;