summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@microsoft.com>2016-09-08 17:41:50 (GMT)
committerSteve Dower <steve.dower@microsoft.com>2016-09-08 17:41:50 (GMT)
commit513d7478a136e7646075592da2593476299cc8be (patch)
tree93c80887412ea4baf3dcd9653f27df77138224a7 /Modules
parentcc16be85c0b7119854c00fb5c666825deef641cf (diff)
downloadcpython-513d7478a136e7646075592da2593476299cc8be.zip
cpython-513d7478a136e7646075592da2593476299cc8be.tar.gz
cpython-513d7478a136e7646075592da2593476299cc8be.tar.bz2
Fix mismatched if blocks in posixmodule.c.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/posixmodule.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index a39ea65..4f5ec99 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -2068,9 +2068,8 @@ posix_do_stat(const char *function_name, path_t *path,
Py_BEGIN_ALLOW_THREADS
if (path->fd != -1)
result = FSTAT(path->fd, &st);
- else
#ifdef MS_WINDOWS
- if (follow_symlinks)
+ else if (follow_symlinks)
result = win32_stat(path->wide, &st);
else
result = win32_lstat(path->wide, &st);