diff options
author | Matthias Klose <doko@ubuntu.com> | 2012-08-14 17:42:45 +0200 |
---|---|---|
committer | Matthias Klose <doko@ubuntu.com> | 2012-08-14 17:42:45 +0200 |
commit | 92636bf243873bce70f7056c1fa8a125a1146526 (patch) | |
tree | 462d2fd42ffea407c0b4837593810cfe84e97df0 /Python/import.c | |
parent | c551776f8e5b4c8bcb3cf4b91c679ba080e543cf (diff) | |
download | cpython-git-92636bf243873bce70f7056c1fa8a125a1146526.tar.gz |
- Issue #15647: Make isdir static for windows and posix
Diffstat (limited to 'Python/import.c')
-rw-r--r-- | Python/import.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/import.c b/Python/import.c index 2f11e756c9..e95b7c0e6f 100644 --- a/Python/import.c +++ b/Python/import.c @@ -115,7 +115,7 @@ static const struct filedescr _PyImport_StandardFiletab[] = { #endif #ifdef MS_WINDOWS -int isdir(char *path) { +static int isdir(char *path) { DWORD rv; /* see issue1293 and issue3677: * stat() on Windows doesn't recognise paths like @@ -128,7 +128,7 @@ int isdir(char *path) { } #else #ifdef HAVE_STAT -int isdir(char *path) { +static int isdir(char *path) { struct stat statbuf; return stat(path, &statbuf) == 0 && S_ISDIR(statbuf.st_mode); } |