Replaced obsolete stat module constants with equivalent attributes
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 @@
         st = os.stat(path)
     except os.error:
         return False
-    return st[0] & 0111 != 0
+    return st.st_mode & 0111 != 0
 
 
 def test(HandlerClass = CGIHTTPRequestHandler,