summaryrefslogtreecommitdiff
path: root/Python/getopt.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-06-20 17:45:54 +0200
committerVictor Stinner <victor.stinner@haypocalc.com>2011-06-20 17:45:54 +0200
commitfb25ba9b073ddcec602700484ff5fc2b1bea1a59 (patch)
tree82bcb24c576d8a4fc99c30132f02cca2dbd2eccf /Python/getopt.c
parent54e647f21511feca159a734b49878f566c72ab1d (diff)
downloadcpython-git-fb25ba9b073ddcec602700484ff5fc2b1bea1a59.tar.gz
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.
Diffstat (limited to 'Python/getopt.c')
0 files changed, 0 insertions, 0 deletions