summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2012-03-08 14:56:00 (GMT)
committerJason R. Coombs <jaraco@jaraco.com>2012-03-08 14:56:00 (GMT)
commit0e17dfbdcfe24be57889ae93cddc90843432e6d6 (patch)
tree3d1d4ac2f895cb8b9a9cdb795a8ee4c204b1d3bd /Python
parent4a24283272fcd646dc89ab6ab00c2e919bc5a773 (diff)
downloadcpython-0e17dfbdcfe24be57889ae93cddc90843432e6d6.zip
cpython-0e17dfbdcfe24be57889ae93cddc90843432e6d6.tar.gz
cpython-0e17dfbdcfe24be57889ae93cddc90843432e6d6.tar.bz2
Test in 6c218b9c5c4c was inadvertently converted from #ifdef to #if. Now #ifdef again.
Diffstat (limited to 'Python')
-rw-r--r--Python/import.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/import.c b/Python/import.c
index 3fc9754..127b807 100644
--- a/Python/import.c
+++ b/Python/import.c
@@ -127,7 +127,7 @@ int isdir(char *path) {
return rv != INVALID_FILE_ATTRIBUTES && rv & FILE_ATTRIBUTE_DIRECTORY;
}
#else
-#if HAVE_STAT
+#ifdef HAVE_STAT
int isdir(char *path) {
struct stat statbuf;
return stat(path, &statbuf) == 0 && S_ISDIR(statbuf.st_mode);