def tabs_or_spaces(physical_line, indent_char):
 indent = INDENT_REGEX.match(physical_line).group(1)
 for (offset, char) in enumerate(indent):
  if (char != indent_char):
   return (offset, 'E101 indentation contains mixed spaces and tabs')

def tabs_or_spaces ( physical_line , indent_char ) : indent = INDENT_REGEX . match ( physical_line ) . group ( 1 ) for ( offset , char ) in enumerate ( indent ) : if ( char != indent_char ) : return ( offset , 'E101 indentation contains mixed spaces and tabs' )
never mix tabs and spaces .