@staticmethod
def get_indent(line):
    """ Return only the leading whitespace from a line. """
    indent = []
    while line.startswith((' ', '\t')):
        indent.append(line[0])
        line = line[1:]
    return ''.join(indent)
