mirror of
https://github.com/python/cpython.git
synced 2025-10-17 04:08:28 +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
|
@ -308,7 +308,7 @@ def executable(path):
|
|||
st = os.stat(path)
|
||||
except os.error:
|
||||
return False
|
||||
return st[0] & 0111 != 0
|
||||
return st.st_mode & 0111 != 0
|
||||
|
||||
|
||||
def test(HandlerClass = CGIHTTPRequestHandler,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue