commit | 32200aeac697fcb3f2b4528127a2fbf0a22a8f17 | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Sat Jun 01 19:51:15 2002 +0000 |
committer | Raymond Hettinger <python@rcn.com> | Sat Jun 01 19:51:15 2002 +0000 |
tree | b99f2c04d576a3699ab9a2b6dfc1fc0e31e3c734 | |
parent | 16e3c427f35589ac3b83e8c13a8ec6495ec6cfa1 [diff] [blame] |
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,