Home | History | Annotate | Download | only in afe

Lines Matching refs:lines

199 def add_boilerplate_to_nested_steps(lines):
204 if re.search(r'^(.*\n)*def\s+step_init\s*\(\s*\)\s*:', lines):
205 lines += '\nreturn locals() '
206 lines += '# Boilerplate magic for nested sets of steps'
207 return lines
210 def format_step(item, lines):
211 lines = indent_text(lines, ' ')
212 lines = 'def step%d():\n%s' % (item, lines)
213 return lines
279 """Indent given lines of python code avoiding indenting multiline