mirror of
https://github.com/python/cpython.git
synced 2025-10-31 21:51:50 +00:00
real test for executable script
This commit is contained in:
parent
5bb05da6f7
commit
13ad35a7d6
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue