Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
579f0380
Commit
579f0380
authored
Nov 08, 2016
by
Serhiy Storchaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #28585: Restored docstring of os._isdir().
parent
6ea2b8fc
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
Modules/clinic/posixmodule.c.h
Modules/clinic/posixmodule.c.h
+3
-2
Modules/posixmodule.c
Modules/posixmodule.c
+2
-4
No files found.
Modules/clinic/posixmodule.c.h
View file @
579f0380
...
...
@@ -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=
9d5f831b23145d1
e input=a9049054013a1b77]*/
/*[clinic end generated code: output=
7690b72549d2524
e input=a9049054013a1b77]*/
Modules/posixmodule.c
View file @
579f0380
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment