real test for executable script

This commit is contained in:
Guido van Rossum 1996-01-25 18:23:50 +00:00
parent 5bb05da6f7
commit 13ad35a7d6

View File

@ -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,