def tab_in_leading(s):
 n = (len(s) - len(s.lstrip()))
 if (not (s[n:(n + 3)] in ['...', '>>>'])):
  check = s[:n]
 else:
  smore = s[(n + 3):]
  check = (s[:n] + smore[:(len(smore) - len(smore.lstrip()))])
 return (not (check.expandtabs() == check))

def tab_in_leading ( s ) : n = ( len ( s ) - len ( s . lstrip ( ) ) ) if ( not ( s [ n : ( n + 3 ) ] in [ '...' , '>>>' ] ) ) : check = s [ : n ] else : smore = s [ ( n + 3 ) : ] check = ( s [ : n ] + smore [ : ( len ( smore ) - len ( smore . lstrip ( ) ) ) ] ) return ( not ( check . expandtabs ( ) == check ) )
returns true if there are tabs in the leading whitespace of a line .