Mercurial > cpython-lru_cache-weakref
diff Python/bltinmodule.c @ 19061:f51b13bf5d54 legacy-trunk
Put conditional S_ISDIR definition(s) into pyport.h.
| author | Martin v. Löwis <martin@v.loewis.de> |
|---|---|
| date | Wed, 08 Aug 2001 10:28:06 +0000 |
| parents | f9494135b579 |
| children | b9701538f827 |
line wrap: on
line diff
--- a/Python/bltinmodule.c Wed Aug 08 07:57:26 2001 +0000 +++ b/Python/bltinmodule.c Wed Aug 08 10:28:06 2001 +0000 @@ -592,7 +592,7 @@ exists = 0; /* Test for existence or directory. */ if (!stat(filename, &s)) { - if ((s.st_mode & S_IFMT) == S_IFDIR) + if (S_ISDIR(s.st_mode)) errno = EISDIR; else exists = 1;
