diff options
author | Steve Dower <steve.dower@microsoft.com> | 2016-07-18 03:50:28 (GMT) |
---|---|---|
committer | Steve Dower <steve.dower@microsoft.com> | 2016-07-18 03:50:28 (GMT) |
commit | 262dc1e71d3ca6215b365ce6f85ecb19e49c4448 (patch) | |
tree | f8c5c55d51a04932bbf407d0c71246048e015b1a /Modules/posixmodule.c | |
parent | 1db9222b0c216b6eb320fac466a0fcf069515bec (diff) | |
parent | b22a67737ea20f8646540903d32149ed7d5af3eb (diff) | |
download | cpython-262dc1e71d3ca6215b365ce6f85ecb19e49c4448.zip cpython-262dc1e71d3ca6215b365ce6f85ecb19e49c4448.tar.gz cpython-262dc1e71d3ca6215b365ce6f85ecb19e49c4448.tar.bz2 |
Issue #27533: Release GIL in nt._isdir
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r-- | Modules/posixmodule.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 7f16a83..424daac 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -3893,10 +3893,12 @@ os__isdir_impl(PyObject *module, path_t *path) { DWORD attributes; + Py_BEGIN_ALLOW_THREADS if (!path->narrow) attributes = GetFileAttributesW(path->wide); else attributes = GetFileAttributesA(path->narrow); + Py_END_ALLOW_THREADS if (attributes == INVALID_FILE_ATTRIBUTES) Py_RETURN_FALSE; |