[Python-checkins] cpython (2.7): Test in 6c218b9c5c4c was inadvertently converted from #ifdef to #if. Now #ifdef

jason.coombs python-checkins at python.org
Thu Mar 8 15:56:15 CET 2012


http://hg.python.org/cpython/rev/7ec441d4d818
changeset:   75494:7ec441d4d818
branch:      2.7
user:        Jason R. Coombs <jaraco at jaraco.com>
date:        Thu Mar 08 09:56:00 2012 -0500
summary:
  Test in 6c218b9c5c4c was inadvertently converted from #ifdef to #if. Now #ifdef again.

files:
  Python/import.c |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Python/import.c b/Python/import.c
--- a/Python/import.c
+++ b/Python/import.c
@@ -127,7 +127,7 @@
     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);

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list