mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 11:49:12 +00:00 
			
		
		
		
	Issue #27533: Release GIL in nt._isdir
This commit is contained in:
		
						commit
						262dc1e71d
					
				
					 2 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
					@ -23,6 +23,8 @@ Core and Builtins
 | 
				
			||||||
Library
 | 
					Library
 | 
				
			||||||
-------
 | 
					-------
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- Issue #27533: Release GIL in nt._isdir
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- Issue #17711: Fixed unpickling by the persistent ID with protocol 0.
 | 
					- Issue #17711: Fixed unpickling by the persistent ID with protocol 0.
 | 
				
			||||||
  Original patch by Alexandre Vassalotti.
 | 
					  Original patch by Alexandre Vassalotti.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -3893,10 +3893,12 @@ os__isdir_impl(PyObject *module, path_t *path)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    DWORD attributes;
 | 
					    DWORD attributes;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    Py_BEGIN_ALLOW_THREADS
 | 
				
			||||||
    if (!path->narrow)
 | 
					    if (!path->narrow)
 | 
				
			||||||
        attributes = GetFileAttributesW(path->wide);
 | 
					        attributes = GetFileAttributesW(path->wide);
 | 
				
			||||||
    else
 | 
					    else
 | 
				
			||||||
        attributes = GetFileAttributesA(path->narrow);
 | 
					        attributes = GetFileAttributesA(path->narrow);
 | 
				
			||||||
 | 
					    Py_END_ALLOW_THREADS
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (attributes == INVALID_FILE_ATTRIBUTES)
 | 
					    if (attributes == INVALID_FILE_ATTRIBUTES)
 | 
				
			||||||
        Py_RETURN_FALSE;
 | 
					        Py_RETURN_FALSE;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue