diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2017-03-30 06:12:31 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-30 06:12:31 (GMT) |
commit | ea720fe7e99d68924deab38de955fe97f87e2b29 (patch) | |
tree | a5996c9c8577f8824876575c8dcbf912d86226bc /Modules/clinic | |
parent | 0a58f72762353768c7d26412e627ff196aac6c4e (diff) | |
download | cpython-ea720fe7e99d68924deab38de955fe97f87e2b29.zip cpython-ea720fe7e99d68924deab38de955fe97f87e2b29.tar.gz cpython-ea720fe7e99d68924deab38de955fe97f87e2b29.tar.bz2 |
bpo-25996: Added support of file descriptors in os.scandir() on Unix. (#502)
os.fwalk() is sped up by 2 times by using os.scandir().
Diffstat (limited to 'Modules/clinic')
-rw-r--r-- | Modules/clinic/posixmodule.c.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/clinic/posixmodule.c.h b/Modules/clinic/posixmodule.c.h index 39ac7fd..6ef0293 100644 --- a/Modules/clinic/posixmodule.c.h +++ b/Modules/clinic/posixmodule.c.h @@ -5926,7 +5926,7 @@ os_scandir(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwname PyObject *return_value = NULL; static const char * const _keywords[] = {"path", NULL}; static _PyArg_Parser _parser = {"|O&:scandir", _keywords, 0}; - path_t path = PATH_T_INITIALIZE("scandir", "path", 1, 0); + path_t path = PATH_T_INITIALIZE("scandir", "path", 1, PATH_HAVE_FDOPENDIR); if (!_PyArg_ParseStackAndKeywords(args, nargs, kwnames, &_parser, path_converter, &path)) { @@ -6493,4 +6493,4 @@ exit: #ifndef OS_GETRANDOM_METHODDEF #define OS_GETRANDOM_METHODDEF #endif /* !defined(OS_GETRANDOM_METHODDEF) */ -/*[clinic end generated code: output=5a0be969e3f71660 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=5529857101c08b49 input=a9049054013a1b77]*/ |