Skip to content

Commit

Permalink
pythongh-102765: add missing curly brace, fix whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
finnagin committed Mar 27, 2023
1 parent a136922 commit a1a3fa5
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions Modules/posixmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit a1a3fa5

Please sign in to comment.