[Python-checkins] cpython (2.7): - Issue #15647: Make isdir static for windows and posix
matthias.klose
python-checkins at python.org
Tue Aug 14 17:45:52 CEST 2012
http://hg.python.org/cpython/rev/bdd1b2228c14
changeset: 78576:bdd1b2228c14
branch: 2.7
parent: 78568:b7d4a13c736e
user: Matthias Klose <doko at ubuntu.com>
date: Tue Aug 14 17:42:45 2012 +0200
summary:
- Issue #15647: Make isdir static for windows and posix
files:
Python/import.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Python/import.c b/Python/import.c
--- a/Python/import.c
+++ b/Python/import.c
@@ -115,7 +115,7 @@
#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 @@
}
#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);
}
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list