mirror of
https://github.com/python/cpython.git
synced 2024-11-24 02:15:30 +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)
|
st = os.stat(path)
|
||||||
except os.error:
|
except os.error:
|
||||||
return 0
|
return 0
|
||||||
return 1
|
return st[0] & 0111 != 0
|
||||||
|
|
||||||
|
|
||||||
def test(HandlerClass = CGIHTTPRequestHandler,
|
def test(HandlerClass = CGIHTTPRequestHandler,
|
||||||
|
Loading…
Reference in New Issue
Block a user