mirror of
https://github.com/python/cpython.git
synced 2024-11-23 18:04:37 +08:00
real test for executable script
This commit is contained in:
parent
5bb05da6f7
commit
13ad35a7d6
@ -186,7 +186,7 @@ def executable(path):
|
||||
st = os.stat(path)
|
||||
except os.error:
|
||||
return 0
|
||||
return 1
|
||||
return st[0] & 0111 != 0
|
||||
|
||||
|
||||
def test(HandlerClass = CGIHTTPRequestHandler,
|
||||
|
Loading…
Reference in New Issue
Block a user