def indentcount_lines(lines):
    indentno = sys.maxsize
    for line in lines:
        stripped = line.lstrip()
        if stripped:
            indentno = min(indentno, len(line) - len(stripped))
    if indentno == sys.maxsize:
        return 0
    return indentno
Minimum indent for all lines in line list
dataset/ETHPy150Open scipy/scipy/scipy/misc/doccer.py/indentcount_lines