pyebnf/primitive.py
def _split_ignored(text, ignore_whitespace=True):
  """Return (leading whitespace, trailing text) if ignore_whitespace is true, or ("", text) if
  False.
  """
  if ignore_whitespace:
    leading_ws_count = _count_leading_whitespace(text)
    ignored_ws = text[:leading_ws_count]
    use_text = text[leading_ws_count:]
    return (ignored_ws, use_text)
  else:
    return ("", text)
def _split_ignored(text, ignore_whitespace=True):
  """Return (leading whitespace, trailing text) if ignore_whitespace is true, or ("", text) if
  False.
  """
  if ignore_whitespace:
    leading_ws_count = _count_leading_whitespace(text)
    ignored_ws = text[:leading_ws_count]
    use_text = text[leading_ws_count:]
    return (ignored_ws, use_text)
  else:
    return ("", text)
def _split_ignored ( text , ignore_whitespace = True ) : if ignore_whitespace : leading_ws_count = _count_leading_whitespace ( text ) ignored_ws = text [ : leading_ws_count ] use_text = text [ leading_ws_count : ] return ( ignored_ws , use_text ) else : return ( "" , text )
Return (leading whitespace, trailing text) if ignore_whitespace is true, or ("", text) if
  False.
Return ( leading whitespace trailing text ) if ignore_whitespace is true or ( text ) if False .