]> granicus.if.org Git - python/commit
Close #12289: Fix "is executable?" test in the CGI server
authorVictor Stinner <victor.stinner@haypocalc.com>
Mon, 20 Jun 2011 15:45:54 +0000 (17:45 +0200)
committerVictor Stinner <victor.stinner@haypocalc.com>
Mon, 20 Jun 2011 15:45:54 +0000 (17:45 +0200)
commitfb25ba9b073ddcec602700484ff5fc2b1bea1a59
tree82bcb24c576d8a4fc99c30132f02cca2dbd2eccf
parent54e647f21511feca159a734b49878f566c72ab1d
Close #12289: Fix "is executable?" test in the CGI server

Use os.access(path, os.X_OK) instead of (os.stat(path).st_mode & 0o111 != 0),
and ignore the test on Windows.
Lib/http/server.py