def get_indent(line):
    """ Return the indent portion of the line.

    """
    indent = indent_regex.match(line)
    if indent is None:
        return ''
    else:
        return indent.group()

#------------------------------------------------------------------------------
#  Functions to detect line type
#------------------------------------------------------------------------------
dataset/ETHPy150Open ContinuumIO/ashiba/enaml/docs/source/sphinxext/refactordoc/line_functions.py/get_indent/original