diff options
Diffstat (limited to 'Lib/CGIHTTPServer.py')
-rw-r--r-- | Lib/CGIHTTPServer.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/CGIHTTPServer.py b/Lib/CGIHTTPServer.py index 56dee47..fbd82c9 100644 --- a/Lib/CGIHTTPServer.py +++ b/Lib/CGIHTTPServer.py @@ -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, |