diff options
| author | Xiang Zhang <angwerzx@126.com> | 2017-01-22 13:04:17 +0800 |
|---|---|---|
| committer | Xiang Zhang <angwerzx@126.com> | 2017-01-22 13:04:17 +0800 |
| commit | 4459e009ed36331a976d605270bc0a81d091aa75 (patch) | |
| tree | bf6e2bfbafba50d5b2801b6d630ad0d38b263177 /Modules/posixmodule.c | |
| parent | a203360836df8110b6e0e4b8a8ed551fa2f0df06 (diff) | |
| parent | d7d87ca9b0495f1dd04863fbb93226c0e0f7af5f (diff) | |
| download | cpython-git-4459e009ed36331a976d605270bc0a81d091aa75.tar.gz | |
Issue #29092: Sync os.stat's doc and docstring on path type.
Diffstat (limited to 'Modules/posixmodule.c')
| -rw-r--r-- | Modules/posixmodule.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 33ee70d8d5..dc3fb94c87 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -2386,7 +2386,8 @@ class sched_param_converter(CConverter): os.stat path : path_t(allow_fd=True) - Path to be examined; can be string, bytes, or open-file-descriptor int. + Path to be examined; can be string, bytes, path-like object or + open-file-descriptor int. * @@ -2413,7 +2414,7 @@ It's an error to use dir_fd or follow_symlinks when specifying path as static PyObject * os_stat_impl(PyObject *module, path_t *path, int dir_fd, int follow_symlinks) -/*[clinic end generated code: output=7d4976e6f18a59c5 input=099d356c306fa24a]*/ +/*[clinic end generated code: output=7d4976e6f18a59c5 input=270bd64e7bb3c8f7]*/ { return posix_do_stat("stat", path, dir_fd, follow_symlinks); } |
