(codeline)
return indent, codeline, opener
Return tuple of (line indent value, codeline, block start keyword).

    The indentation of empty lines (or comment lines) is INFINITY.
    If the line does not start a block, the keyword value is False.
Return tuple of (line indent value, codeline, block start keyword).
Return tuple of ( line indent value codeline block start keyword ) .
def get_line_info(codeline):
    """Return tuple of (line indent value, codeline, block start keyword).

    The indentation of empty lines (or comment lines) is INFINITY.
    If the line does not start a block, the keyword value is False.
    """
    spaces, firstword = get_spaces_firstword(codeline)
    indent = len(spaces)
    if len(codeline) == indent or codeline[indent] == '#':
        indent = INFINITY
    opener = firstword in BLOCKOPENERS and firstword
    return indent, codeline, opener
def get_line_info ( codeline ) : spaces , firstword = get_spaces_firstword ( codeline ) indent = len ( spaces ) if len ( codeline ) == indent or codeline [ indent ] == '#' : indent = INFINITY opener = firstword in BLOCKOPENERS and firstword return indent , codeline , opener