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

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


http://hg.python.org/cpython/rev/e290451883d0
changeset:   84300:e290451883d0
parent:      84298:44c8a9d80595
parent:      84299:0762f2419494
user:        Christian Heimes <christian at cheimes.de>
date:        Sun Jun 23 23:52:40 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