We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 416c386 commit 86a542dCopy full SHA for 86a542d
1 file changed
src/e3/os/windows/process.py
@@ -37,8 +37,7 @@ def process_exit_code(handle: int) -> int | None:
37
raise OSError(msg)
38
if exit_code == ProcessInfo.STILL_ACTIVE:
39
return None
40
- else:
41
- return exit_code
+ return exit_code
42
43
44
def wait_for_objects(
@@ -74,8 +73,8 @@ def wait_for_objects(
74
73
75
if Wait.ABANDONED <= object_index < Wait.ABANDONED + size: # defensive code
76
return object_index - Wait.ABANDONED
77
- elif Wait.OBJECT <= object_index < Wait.OBJECT + size:
+ if Wait.OBJECT <= object_index < Wait.OBJECT + size:
78
return object_index
79
- else: # defensive code
80
- msg = "unknown error while waiting for objects"
81
- raise OSError(msg)
+ # defensive code
+ msg = "unknown error while waiting for objects"
+ raise OSError(msg)
0 commit comments