def get_indentation(line):
    """
    Returns the leading spaces and/or tabs of a line of text.

    Preconditions: None

    @type line: str
    @rtype: str
    """
    ptr = 0
    while ptr < len(line):
        if line[ptr] != ' ' and line[ptr] != '\t':
            break
        ptr += 1
    return line[0:ptr]