[Python-checkins] cpython: Fix mismatched if blocks in posixmodule.c.

steve.dower python-checkins at python.org
Thu Sep 8 13:42:01 EDT 2016


https://hg.python.org/cpython/rev/aca5afbdbf39
changeset: 103323:aca5afbdbf39
user: Steve Dower <steve.dower at microsoft.com>
date: Thu Sep 08 10:41:50 2016 -0700
summary:
 Fix mismatched if blocks in posixmodule.c.
files:
 Modules/posixmodule.c | 5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -2068,9 +2068,8 @@
 Py_BEGIN_ALLOW_THREADS
 if (path->fd != -1)
 result = FSTAT(path->fd, &st);
- else
-#ifdef MS_WINDOWS
- if (follow_symlinks)
+#ifdef MS_WINDOWS
+ else if (follow_symlinks)
 result = win32_stat(path->wide, &st);
 else
 result = win32_lstat(path->wide, &st);
-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /