Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 852cc33

Browse files
Issue #28585: Restored docstring of os._isdir().
2 parents 727ba7c + 579f038 commit 852cc33

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

Modules/clinic/posixmodule.c.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -995,7 +995,8 @@ os__getfinalpathname(PyObject *module, PyObject *arg)
995995
PyDoc_STRVAR(os__isdir__doc__,
996996
"_isdir($module, path, /)\n"
997997
"--\n"
998-
"\n");
998+
"\n"
999+
"Return true if the pathname refers to an existing directory.");
9991000

10001001
#define OS__ISDIR_METHODDEF \
10011002
{"_isdir", (PyCFunction)os__isdir, METH_O, os__isdir__doc__},
@@ -6148,4 +6149,4 @@ os_getrandom(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwna
61486149
#ifndef OS_GETRANDOM_METHODDEF
61496150
#define OS_GETRANDOM_METHODDEF
61506151
#endif /* !defined(OS_GETRANDOM_METHODDEF) */
6151-
/*[clinic end generated code: output=b9ed5703d2feb0d9 input=a9049054013a1b77]*/
6152+
/*[clinic end generated code: output=50cfb7ebc44efb67 input=a9049054013a1b77]*/

Modules/posixmodule.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3717,20 +3717,18 @@ os__getfinalpathname_impl(PyObject *module, PyObject *path)
37173717
return result;
37183718
}
37193719

3720-
PyDoc_STRVAR(posix__isdir__doc__,
3721-
"Return true if the pathname refers to an existing directory.");
3722-
37233720
/*[clinic input]
37243721
os._isdir
37253722
37263723
path: path_t
37273724
/
37283725
3726+
Return true if the pathname refers to an existing directory.
37293727
[clinic start generated code]*/
37303728

37313729
static PyObject *
37323730
os__isdir_impl(PyObject *module, path_t *path)
3733-
/*[clinic end generated code: output=75f56f32720836cb input=e794f12faab62a2a]*/
3731+
/*[clinic end generated code: output=75f56f32720836cb input=5e0800149c0ad95f]*/
37343732
{
37353733
DWORD attributes;
37363734

0 commit comments

Comments
 (0)