From a1a3fa5c9c16dfb2c4fc40837c46f1522d32f28d Mon Sep 17 00:00:00 2001 From: Finn Womack Date: Mon, 27 Mar 2023 14:54:10 -0700 Subject: [PATCH] pythongh-102765: add missing curly brace, fix whitespace --- Modules/posixmodule.c | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 5bd3a76877671c..02450cae1b4eb8 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -4811,16 +4811,17 @@ os__path_isdir_impl(PyObject *module, PyObject *path) slow_path = FALSE; } } else { - switch(GetLastError()) { - case ERROR_FILE_NOT_FOUND: - case ERROR_PATH_NOT_FOUND: - case ERROR_NOT_READY: - case ERROR_BAD_NET_NAME: - /* These errors aren't worth retrying with the slow path */ - slow_path = FALSE; - case ERROR_NOT_SUPPORTED: - /* indicates the API couldn't be loaded */ - break; + switch(GetLastError()) { + case ERROR_FILE_NOT_FOUND: + case ERROR_PATH_NOT_FOUND: + case ERROR_NOT_READY: + case ERROR_BAD_NET_NAME: + /* These errors aren't worth retrying with the slow path */ + slow_path = FALSE; + case ERROR_NOT_SUPPORTED: + /* indicates the API couldn't be loaded */ + break; + } } } if (_path.fd != -1) {