summaryrefslogtreecommitdiffstats
path: root/Python/bltinmodule.c
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2001-08-08 10:28:06 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2001-08-08 10:28:06 (GMT)
commitf9836ba4fea66d74fc2afddc434a147265a9caa7 (patch)
tree868672f429a7a963f58dc0dc671b0f907c0a84fd /Python/bltinmodule.c
parente00dde2087db2c211f9c9267659d37e3306f79d8 (diff)
downloadcpython-f9836ba4fea66d74fc2afddc434a147265a9caa7.zip
cpython-f9836ba4fea66d74fc2afddc434a147265a9caa7.tar.gz
cpython-f9836ba4fea66d74fc2afddc434a147265a9caa7.tar.bz2
Put conditional S_ISDIR definition(s) into pyport.h.
Diffstat (limited to 'Python/bltinmodule.c')
-rw-r--r--Python/bltinmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c
index 8f5a932..fa68162 100644
--- a/Python/bltinmodule.c
+++ b/Python/bltinmodule.c
@@ -592,7 +592,7 @@ builtin_execfile(PyObject *self, PyObject *args)
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;