def find_whitespace()

in Build/check_indents.py [0:0]


def find_whitespace(string : str) -> Tuple[str, str]:
    groups = re.match(r'(\s*)([^\s].*$)?', string, flags=re.S).groups()
    return groups[0], groups[1] or ''