Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
262dc1e7
Commit
262dc1e7
authored
Jul 17, 2016
by
Steve Dower
Browse files
Options
Browse Files
Download
Plain Diff
Issue #27533: Release GIL in nt._isdir
parents
1db9222b
b22a6773
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
Misc/NEWS
Misc/NEWS
+2
-0
Modules/posixmodule.c
Modules/posixmodule.c
+2
-0
No files found.
Misc/NEWS
View file @
262dc1e7
...
...
@@ -23,6 +23,8 @@ Core and Builtins
Library
-------
- Issue #27533: Release GIL in nt._isdir
- Issue #17711: Fixed unpickling by the persistent ID with protocol 0.
Original patch by Alexandre Vassalotti.
...
...
Modules/posixmodule.c
View file @
262dc1e7
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment