pylint/checkers/format.py
def _get_indent_length(line):
    """Return the length of the indentation on the given token's line."""
    result = 0
    for char in line:
        if char == " ":
            result += 1
        elif char == "\t":
            result += _TAB_LENGTH
        else:
            break
    return result
def _get_indent_length(line):
    result = 0
    for char in line:
        if char == " ":
            result += 1
        elif char == "\t":
            result += _TAB_LENGTH
        else:
            break
    return result
def _get_indent_length ( line ) : result = 0 for char in line : if char == " " : result += 1 elif char == "\t" : result += _TAB_LENGTH else : break return result
Return the length of the indentation on the given token's line.
Return the length of the indentation on the given token s line .