else:
result += statement[1] + "\n"
result += self.step.task
return re.sub(r"\s+", " ", result)
def log(self, stage=None, msg=None):
raise RuntimeError("Please redefine the log function in derived step executor.")
After Change
def get_tokens(statement):
return [x[1] for x in generate_tokens(StringIO(statement).readline)]
tokens = []
for statement in self.step.statements:
if statement[0] in (":", "="):
tokens.extend([statement[1], statement[0]])
tokens.extend(get_tokens(statement[2]))