File tree Expand file tree Collapse file tree 1 file changed +0
-22
lines changed Expand file tree Collapse file tree 1 file changed +0
-22
lines changed Original file line number Diff line number Diff line change @@ -148,20 +148,6 @@ def line_handler(self, line):
148148 line (bytearray):
149149 Line to process.
150150 """
151-
152- # If the line tells us about the state, set the state and be done.
153- if line == b'>>>> IDLE' :
154- self .set_state (self .IDLE )
155- return
156- if line == b'>>>> RUNNING' :
157- self .set_state (self .RUNNING )
158- return
159- if line == b'>>>> ERROR' :
160- self .set_state (self .ERROR )
161- return
162- if line == b'--------------' :
163- return
164-
165151 # The line tells us to open a log file, so do it.
166152 if b'PB_OF' in line :
167153 if self .log_file is not None :
@@ -220,14 +206,6 @@ async def wait_for_checksum(self):
220206 self .set_state (self .IDLE )
221207 return result
222208
223- async def wait_until_state (self , state ):
224- """Awaits until the requested state is reached."""
225- # FIXME: handle using event on state change
226- while True :
227- await asyncio .sleep (0.1 )
228- if self .state == state :
229- break
230-
231209 async def wait_until_state_is_not (self , state ):
232210 """Awaits until the requested state is no longer active."""
233211 # FIXME: handle using event on state change
You can’t perform that action at this time.
0 commit comments