def indentsize(line):
 expline = string.expandtabs(line)
 return (len(expline) - len(string.lstrip(expline)))

def indentsize ( line ) : expline = string . expandtabs ( line ) return ( len ( expline ) - len ( string . lstrip ( expline ) ) )
return the indent size .