Skip to content

Commit b86d26c

Browse files
committed
Remove unused variables
1 parent 4f6416e commit b86d26c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

supervisor/pidproxy.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ def go(self):
2525
while 1:
2626
time.sleep(5)
2727
try:
28-
pid, sts = os.waitpid(-1, os.WNOHANG)
28+
pid = os.waitpid(-1, os.WNOHANG)[0]
2929
except OSError:
30-
pid, sts = None, None
30+
pid = None
3131
if pid:
3232
break
3333

supervisor/tests/test_process.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1543,7 +1543,7 @@ def test_transition_backoff_to_starting_delay_in_future(self):
15431543
from supervisor import events
15441544
L = []
15451545
events.subscribe(events.ProcessStateEvent, lambda x: L.append(x))
1546-
from supervisor.states import ProcessStates, SupervisorStates
1546+
from supervisor.states import ProcessStates
15471547

15481548
future_time = time.time() + 3600 # 1 hour into the future
15491549
options = DummyOptions()

0 commit comments

Comments
 (0)