def parse_steps(text, language=None, filename=None):
 assert isinstance(text, six.text_type)
 try:
  result = Parser(language, variant='steps').parse_steps(text, filename)
 except ParserError as e:
  e.filename = filename
  raise
 return result

def parse_steps ( text , language = None , filename = None ) : assert isinstance ( text , six . text_type ) try : result = Parser ( language , variant = 'steps' ) . parse_steps ( text , filename ) except ParserError as e : e . filename = filename raise return result
parse a number of steps a multi-line text from a scenario .