diff options
author | Steve Dower <steve.dower@microsoft.com> | 2016-07-18 03:49:38 (GMT) |
---|---|---|
committer | Steve Dower <steve.dower@microsoft.com> | 2016-07-18 03:49:38 (GMT) |
commit | b22a67737ea20f8646540903d32149ed7d5af3eb (patch) | |
tree | 41f36a57a97ced101fe46618b206e02bda70d9fe /Modules | |
parent | bc3e9cac7cb3f79b0abf5a29b9cc8a47906f9b30 (diff) | |
download | cpython-b22a67737ea20f8646540903d32149ed7d5af3eb.zip cpython-b22a67737ea20f8646540903d32149ed7d5af3eb.tar.gz cpython-b22a67737ea20f8646540903d32149ed7d5af3eb.tar.bz2 |
Issue #27533: Release GIL in nt._isdir
Diffstat (limited to 'Modules')
-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 3c3f806..ee600fc 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -3878,10 +3878,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; |