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

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 .