diff options
author | Xiang Zhang <angwerzx@126.com> | 2017-01-22 05:10:12 (GMT) |
---|---|---|
committer | Xiang Zhang <angwerzx@126.com> | 2017-01-22 05:10:12 (GMT) |
commit | 1dfaa6c38aa8607a29728db209072a5c95481bc1 (patch) | |
tree | 8c6f22fc7d579c77e61423df060ad20361d055cb /Modules | |
parent | 19dea2c726db6da2353678d8041aa2fff207b670 (diff) | |
parent | 4459e009ed36331a976d605270bc0a81d091aa75 (diff) | |
download | cpython-1dfaa6c38aa8607a29728db209072a5c95481bc1.zip cpython-1dfaa6c38aa8607a29728db209072a5c95481bc1.tar.gz cpython-1dfaa6c38aa8607a29728db209072a5c95481bc1.tar.bz2 |
Issue #29092: Merge 3.6.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/clinic/posixmodule.c.h | 5 | ||||
-rw-r--r-- | Modules/posixmodule.c | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/Modules/clinic/posixmodule.c.h b/Modules/clinic/posixmodule.c.h index c88716f..39ac7fd 100644 --- a/Modules/clinic/posixmodule.c.h +++ b/Modules/clinic/posixmodule.c.h @@ -9,7 +9,8 @@ PyDoc_STRVAR(os_stat__doc__, "Perform a stat system call on the given path.\n" "\n" " path\n" -" Path to be examined; can be string, bytes, or open-file-descriptor int.\n" +" Path to be examined; can be string, bytes, path-like object or\n" +" open-file-descriptor int.\n" " dir_fd\n" " If not None, it should be a file descriptor open to a directory,\n" " and path should be a relative string; path will then be relative to\n" @@ -6492,4 +6493,4 @@ exit: #ifndef OS_GETRANDOM_METHODDEF #define OS_GETRANDOM_METHODDEF #endif /* !defined(OS_GETRANDOM_METHODDEF) */ -/*[clinic end generated code: output=30cdd28fc524f2fb input=a9049054013a1b77]*/ +/*[clinic end generated code: output=5a0be969e3f71660 input=a9049054013a1b77]*/ diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 0f12f4d..d2ff07f 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); } |