[Python-checkins] cpython (merge 3.5 -> 3.6): Issue #28585: Restored docstring of os._isdir().

serhiy.storchaka python-checkins at python.org
Tue Nov 8 13:29:07 EST 2016


https://hg.python.org/cpython/rev/3da89b1678da
changeset:   104973:3da89b1678da
branch:      3.6
parent:      104970:a822818ec74e
parent:      104972:5b4fa92dac43
user:        Serhiy Storchaka <storchaka at gmail.com>
date:        Tue Nov 08 20:26:18 2016 +0200
summary:
  Issue #28585: Restored docstring of os._isdir().

files:
  Modules/clinic/posixmodule.c.h |  5 +++--
  Modules/posixmodule.c          |  6 ++----
  2 files changed, 5 insertions(+), 6 deletions(-)


diff --git a/Modules/clinic/posixmodule.c.h b/Modules/clinic/posixmodule.c.h
--- a/Modules/clinic/posixmodule.c.h
+++ b/Modules/clinic/posixmodule.c.h
@@ -995,7 +995,8 @@
 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__},
@@ -6148,4 +6149,4 @@
 #ifndef OS_GETRANDOM_METHODDEF
     #define OS_GETRANDOM_METHODDEF
 #endif /* !defined(OS_GETRANDOM_METHODDEF) */
-/*[clinic end generated code: output=b9ed5703d2feb0d9 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=50cfb7ebc44efb67 input=a9049054013a1b77]*/
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -3717,20 +3717,18 @@
     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;
 

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list