diff options
author | Tim Peters <tim.peters@gmail.com> | 2001-08-08 06:24:48 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2001-08-08 06:24:48 (GMT) |
commit | 257b3bfa76742ef68cfb30a087ed85a4dfc54f79 (patch) | |
tree | d844e8a4027bd4a8d22d64819cdb5a4204480e12 /Python | |
parent | e54acfd8b2c41597fac0e8c1b0e6cb7cd263dad1 (diff) | |
download | cpython-257b3bfa76742ef68cfb30a087ed85a4dfc54f79.zip cpython-257b3bfa76742ef68cfb30a087ed85a4dfc54f79.tar.gz cpython-257b3bfa76742ef68cfb30a087ed85a4dfc54f79.tar.bz2 |
Repair the Windows build (S_ISDIR() macro doesn't exist).
Somebody else should feel free to repair this a different way; see Python-
Dev for discussion.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/bltinmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index fa68162..8f5a932 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_ISDIR(s.st_mode)) + if ((s.st_mode & S_IFMT) == S_IFDIR) errno = EISDIR; else exists = 1; |