summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-11-08 18:21:22 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-11-08 18:21:22 (GMT)
commit579f038018a87004f9cbc08987a40f14bd636d7c (patch)
tree1869dee76a3cda41334ffb3d1e28af70060711e4 /Modules
parent6ea2b8fc8be8725e1553fbbb159ea07806e9f41a (diff)
downloadcpython-579f038018a87004f9cbc08987a40f14bd636d7c.zip
cpython-579f038018a87004f9cbc08987a40f14bd636d7c.tar.gz
cpython-579f038018a87004f9cbc08987a40f14bd636d7c.tar.bz2
Issue #28585: Restored docstring of os._isdir().
Diffstat (limited to 'Modules')
-rw-r--r--Modules/clinic/posixmodule.c.h5
-rw-r--r--Modules/posixmodule.c6
2 files changed, 5 insertions, 6 deletions
diff --git a/Modules/clinic/posixmodule.c.h b/Modules/clinic/posixmodule.c.h
index 1bbfc06..b3521d8 100644
--- a/Modules/clinic/posixmodule.c.h
+++ b/Modules/clinic/posixmodule.c.h
@@ -954,7 +954,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__},
@@ -5784,4 +5785,4 @@ exit:
#ifndef OS_SET_HANDLE_INHERITABLE_METHODDEF
#define 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]*/
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index d737624..5a23824 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -3865,20 +3865,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;