Commit 579f0380 authored by Serhiy Storchaka's avatar Serhiy Storchaka

Issue #28585: Restored docstring of os._isdir().

parent 6ea2b8fc
...@@ -954,7 +954,8 @@ exit: ...@@ -954,7 +954,8 @@ exit:
PyDoc_STRVAR(os__isdir__doc__, PyDoc_STRVAR(os__isdir__doc__,
"_isdir($module, path, /)\n" "_isdir($module, path, /)\n"
"--\n" "--\n"
"\n"); "\n"
"Return true if the pathname refers to an existing directory.");
#define OS__ISDIR_METHODDEF \ #define OS__ISDIR_METHODDEF \
{"_isdir", (PyCFunction)os__isdir, METH_O, os__isdir__doc__}, {"_isdir", (PyCFunction)os__isdir, METH_O, os__isdir__doc__},
...@@ -5784,4 +5785,4 @@ exit: ...@@ -5784,4 +5785,4 @@ exit:
#ifndef OS_SET_HANDLE_INHERITABLE_METHODDEF #ifndef OS_SET_HANDLE_INHERITABLE_METHODDEF
#define OS_SET_HANDLE_INHERITABLE_METHODDEF #define OS_SET_HANDLE_INHERITABLE_METHODDEF
#endif /* !defined(OS_SET_HANDLE_INHERITABLE_METHODDEF) */ #endif /* !defined(OS_SET_HANDLE_INHERITABLE_METHODDEF) */
/*[clinic end generated code: output=9d5f831b23145d1e input=a9049054013a1b77]*/ /*[clinic end generated code: output=7690b72549d2524e input=a9049054013a1b77]*/
...@@ -3865,20 +3865,18 @@ os__getfinalpathname_impl(PyObject *module, PyObject *path) ...@@ -3865,20 +3865,18 @@ os__getfinalpathname_impl(PyObject *module, PyObject *path)
return result; return result;
} }
PyDoc_STRVAR(posix__isdir__doc__,
"Return true if the pathname refers to an existing directory.");
/*[clinic input] /*[clinic input]
os._isdir os._isdir
path: path_t path: path_t
/ /
Return true if the pathname refers to an existing directory.
[clinic start generated code]*/ [clinic start generated code]*/
static PyObject * static PyObject *
os__isdir_impl(PyObject *module, path_t *path) 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; DWORD attributes;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment