  
      def __init__(self, expression, version=2, precision=8, **extra):
          expressions = [version, expression]
          if precision is not None:
              expressions.append(self._handle_param(precision, 'precision', six.integer_types))
          super(AsGML, self).__init__(*expressions, **extra)
  
      def as_oracle(self, compiler, connection, **extra_context):
          source_expressions = self.get_source_expressions()
          version = source_expressions[0]
 
</s> remove             expressions.append(self._handle_param(precision, 'precision', six.integer_types))
 </s> add             expressions.append(self._handle_param(precision, 'precision', int)) </s> remove             expressions.append(self._handle_param(precision, 'precision', six.integer_types))
 </s> add             expressions.append(self._handle_param(precision, 'precision', int)) </s> remove             self._handle_param(srid, 'srid', six.integer_types),
 </s> add             self._handle_param(srid, 'srid', int), </s> remove             self._handle_param(precision, 'precision', six.integer_types),
 </s> add             self._handle_param(precision, 'precision', int), </s> remove         elif isinstance(type_input, six.string_types):
 </s> add         elif isinstance(type_input, str):
            expressions.append(self._handle_param(precision, 'precision', int))
  
      def __init__(self, expression, version=2, precision=8, **extra):
          expressions = [version, expression]
          if precision is not None:
            expressions.append(self._handle_param(precision, 'precision', int))
          super(AsGML, self).__init__(*expressions, **extra)
  
      def as_oracle(self, compiler, connection, **extra_context):
          source_expressions = self.get_source_expressions()
          version = source_expressions[0]
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/db/models/functions.py