Skip to content

Commit a1a3fa5

Browse files
committed
pythongh-102765: add missing curly brace, fix whitespace
1 parent a136922 commit a1a3fa5

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

Modules/posixmodule.c

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4811,16 +4811,17 @@ os__path_isdir_impl(PyObject *module, PyObject *path)
48114811
slow_path = FALSE;
48124812
}
48134813
} else {
4814-
switch(GetLastError()) {
4815-
case ERROR_FILE_NOT_FOUND:
4816-
case ERROR_PATH_NOT_FOUND:
4817-
case ERROR_NOT_READY:
4818-
case ERROR_BAD_NET_NAME:
4819-
/* These errors aren't worth retrying with the slow path */
4820-
slow_path = FALSE;
4821-
case ERROR_NOT_SUPPORTED:
4822-
/* indicates the API couldn't be loaded */
4823-
break;
4814+
switch(GetLastError()) {
4815+
case ERROR_FILE_NOT_FOUND:
4816+
case ERROR_PATH_NOT_FOUND:
4817+
case ERROR_NOT_READY:
4818+
case ERROR_BAD_NET_NAME:
4819+
/* These errors aren't worth retrying with the slow path */
4820+
slow_path = FALSE;
4821+
case ERROR_NOT_SUPPORTED:
4822+
/* indicates the API couldn't be loaded */
4823+
break;
4824+
}
48244825
}
48254826
}
48264827
if (_path.fd != -1) {

0 commit comments

Comments
 (0)