      def from_bbox(cls, bbox):
          "Constructs a Polygon from a bounding box (4-tuple)."
          x0, y0, x1, y1 = bbox
          for z in bbox:
              if not isinstance(z, six.integer_types + (float,)):
                  return GEOSGeometry('POLYGON((%s %s, %s %s, %s %s, %s %s, %s %s))' %
                                      (x0, y0, x0, y1, x1, y1, x1, y0, x0, y0))
          return Polygon(((x0, y0), (x0, y1), (x1, y1), (x1, y0), (x0, y0)))
  
      # ### These routines are needed for list-like operation w/ListMixin ###
 
</s> remove             six.text_type(self.content_type.app_label),
            six.text_type(self.content_type),
            six.text_type(self.name))
 </s> add             self.content_type.app_label,
            self.content_type,
            self.name,
        ) </s> remove     if isinstance(result, six.integer_types):
 </s> add     if isinstance(result, int): </s> remove         ', '.join(six.text_type(arg) for arg in [one, two] + list(args)),
 </s> add         ', '.join(str(arg) for arg in [one, two] + list(args)), </s> remove             if isinstance(z, six.integer_types + (float,)):
 </s> add             if isinstance(z, (float, int)): </s> remove         ', '.join(six.text_type(arg) for arg in [one, two] + list(args)),
 </s> add         ', '.join(str(arg) for arg in [one, two] + list(args)),
            if not isinstance(z, (float, int)):
      def from_bbox(cls, bbox):
          "Constructs a Polygon from a bounding box (4-tuple)."
          x0, y0, x1, y1 = bbox
          for z in bbox:
            if not isinstance(z, (float, int)):
                  return GEOSGeometry('POLYGON((%s %s, %s %s, %s %s, %s %s, %s %s))' %
                                      (x0, y0, x0, y1, x1, y1, x1, y0, x0, y0))
          return Polygon(((x0, y0), (x0, y1), (x1, y1), (x1, y0), (x0, y0)))
  
      # ### These routines are needed for list-like operation w/ListMixin ###
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/contrib/gis/geos/polygon.py