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):
429
429
430
430
def state_ispending (self ):
431
431
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
433
436
434
437
def state_isrunning (self ):
435
438
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
437
443
438
444
def state_gethost (self ):
439
445
assert self .state_exechost_re , "Misconfigured: define state_exechost_re"
You can’t perform that action at this time.
0 commit comments