File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -429,11 +429,17 @@ class BatchSpawnerRegexStates(BatchSpawnerBase):
429429
430430 def state_ispending (self ):
431431 assert self .state_pending_re , "Misconfigured: define state_running_re"
432- return bool (self .job_status and re .search (self .state_pending_re , self .job_status ))
432+ if self .job_status and re .search (self .state_pending_re , self .job_status ):
433+ return True
434+ else :
435+ return False
433436
434437 def state_isrunning (self ):
435438 assert self .state_running_re , "Misconfigured: define state_running_re"
436- return bool (self .job_status and re .search (self .state_running_re , self .job_status ))
439+ if self .job_status and re .search (self .state_running_re , self .job_status ):
440+ return True
441+ else :
442+ return False
437443
438444 def state_gethost (self ):
439445 assert self .state_exechost_re , "Misconfigured: define state_exechost_re"
You can’t perform that action at this time.
0 commit comments