[Python-checkins] cpython (3.3): Check for correct macro, code uses S_ISDIR().

christian.heimes python-checkins at python.org
Sun Jun 23 23:52:49 CEST 2013


http://hg.python.org/cpython/rev/0762f2419494
changeset:   84299:0762f2419494
branch:      3.3
parent:      84292:ffcf46316e1f
user:        Christian Heimes <christian at cheimes.de>
date:        Sun Jun 23 23:51:44 2013 +0200
summary:
  Check for correct macro, code uses S_ISDIR().

files:
  Modules/_io/fileio.c |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Modules/_io/fileio.c b/Modules/_io/fileio.c
--- a/Modules/_io/fileio.c
+++ b/Modules/_io/fileio.c
@@ -171,7 +171,7 @@
 static int
 dircheck(fileio* self, PyObject *nameobj)
 {
-#if defined(HAVE_FSTAT) && defined(S_IFDIR) && defined(EISDIR)
+#if defined(HAVE_FSTAT) && defined(S_ISDIR) && defined(EISDIR)
     struct stat buf;
     if (self->fd < 0)
         return 0;

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


More information about the Python-checkins mailing list