  
  
  def check_pointer(result, func, cargs):
      "Makes sure the result pointer is valid."
      if isinstance(result, six.integer_types):
          result = c_void_p(result)
      if result:
          return result
      else:
          raise GDALException('Invalid pointer returned from "%s"' % func.__name__)
 
</s> remove     if isinstance(result, six.integer_types):
 </s> add     if isinstance(result, int): </s> remove     if isinstance(result, six.integer_types):
 </s> add     if isinstance(result, int): </s> remove         self.assertIsInstance(resolved_url, six.text_type)
 </s> add         self.assertIsInstance(resolved_url, str) </s> remove             if isinstance(self.children[-1], six.string_types):
 </s> add             if isinstance(self.children[-1], str): </s> remove                 raise ValueError('String or unicode input unrecognized as WKT EWKT, and HEXEWKB.')
 </s> add                 raise ValueError('String input unrecognized as WKT EWKT, and HEXEWKB.')
    if isinstance(result, int):
  
  
  def check_pointer(result, func, cargs):
      "Makes sure the result pointer is valid."
    if isinstance(result, int):
          result = c_void_p(result)
      if result:
          return result
      else:
          raise GDALException('Invalid pointer returned from "%s"' % func.__name__)
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/gdal/prototypes/errcheck.py