def _get_ws(txt):
    """
    Return whitespace at the beginning of a string
    """
    m = re.search(r"^(\s+).*$", txt)
    try:
        fws = m.groups()[0]
    except __HOLE__:
        fws = ''
    return fws
dataset/ETHPy150Open django-silk/silk/silk/profiling/dynamic.py/_get_ws