mirror of https://github.com/python/cpython
Issue #28585: Restored docstring of os._isdir().
This commit is contained in:
commit
b74fecc396
|
@ -995,7 +995,8 @@ exit:
|
|||
PyDoc_STRVAR(os__isdir__doc__,
|
||||
"_isdir($module, path, /)\n"
|
||||
"--\n"
|
||||
"\n");
|
||||
"\n"
|
||||
"Return true if the pathname refers to an existing directory.");
|
||||
|
||||
#define OS__ISDIR_METHODDEF \
|
||||
{"_isdir", (PyCFunction)os__isdir, METH_O, os__isdir__doc__},
|
||||
|
@ -6351,4 +6352,4 @@ exit:
|
|||
#ifndef OS_GETRANDOM_METHODDEF
|
||||
#define OS_GETRANDOM_METHODDEF
|
||||
#endif /* !defined(OS_GETRANDOM_METHODDEF) */
|
||||
/*[clinic end generated code: output=e4a3bd36c7bb8356 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=61abf6df195aa5f1 input=a9049054013a1b77]*/
|
||||
|
|
|
@ -3717,20 +3717,18 @@ os__getfinalpathname_impl(PyObject *module, PyObject *path)
|
|||
return result;
|
||||
}
|
||||
|
||||
PyDoc_STRVAR(posix__isdir__doc__,
|
||||
"Return true if the pathname refers to an existing directory.");
|
||||
|
||||
/*[clinic input]
|
||||
os._isdir
|
||||
|
||||
path: path_t
|
||||
/
|
||||
|
||||
Return true if the pathname refers to an existing directory.
|
||||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
os__isdir_impl(PyObject *module, path_t *path)
|
||||
/*[clinic end generated code: output=75f56f32720836cb input=e794f12faab62a2a]*/
|
||||
/*[clinic end generated code: output=75f56f32720836cb input=5e0800149c0ad95f]*/
|
||||
{
|
||||
DWORD attributes;
|
||||
|
||||
|
|
Loading…
Reference in New Issue