mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Replaced obsolete stat module constants with equivalent attributes
This commit is contained in:
parent
16e3c427f3
commit
32200aeac6
18 changed files with 59 additions and 79 deletions
|
@ -79,4 +79,4 @@ def isdir(path):
|
|||
st = stat(path)
|
||||
except _os.error:
|
||||
return False
|
||||
return S_ISDIR(st[ST_MODE])
|
||||
return S_ISDIR(st.st_mode)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue