def expand_indent(line):
if '<STR_LIT:\t>' not in line:<EOL><INDENT>return len(line) - len(line.lstrip())<EOL><DEDENT>result = <NUM_LIT:0><EOL>for char in line:<EOL><INDENT>if char == '<STR_LIT:\t>':<EOL><INDENT>result = result // <NUM_LIT:8> * <NUM_LIT:8> + <NUM_LIT:8><EOL><DEDENT>elif char == '<STR_LIT:U+0020>':<EOL><INDENT>result += <NUM_LIT:1><EOL><DEDENT>else:<EOL><INDENT>break<EOL><DEDENT><DEDENT>return result<EOL>
r"""Return the amount of indentation.

    Tabs are expanded to the next multiple of 8.

    >>> expand_indent('    ')
    4
    >>> expand_indent('\t')
    8
    >>> expand_indent('       \t')
    8
    >>> expand_indent('        \t')
    16