  
      @staticmethod
      def _archive_cls(file):
          cls = None
          if isinstance(file, six.string_types):
              filename = file
          else:
              try:
                  filename = file.name
              except AttributeError:
 
</s> remove                 if isinstance(content, six.binary_type):
 </s> add                 if isinstance(content, bytes): </s> remove         if isinstance(expected_data, six.string_types):
 </s> add         if isinstance(expected_data, str): </s> remove         if isinstance(expected_data, six.string_types):
 </s> add         if isinstance(expected_data, str): </s> remove         if value and isinstance(value, six.string_types):
 </s> add         if value and isinstance(value, str): </s> remove                     if six.text_type(exc):
 </s> add                     if str(exc):
        if isinstance(file, str):
  
      @staticmethod
      def _archive_cls(file):
          cls = None
        if isinstance(file, str):
              filename = file
          else:
              try:
                  filename = file.name
              except AttributeError:
keep keep keep keep replace keep keep keep keep keep
 Refs #23919 -- Removed six.<various>_types usage

Thanks Tim Graham and Simon Charette for the reviews. 
django/utils/archive.py