   This module contains the 'base' GEOSGeometry object -- all GEOS Geometries
   inherit from this object.
  """
  from ctypes import addressof, byref, c_double
  
  from django.contrib.gis import gdal
  from django.contrib.gis.geometry.regex import hex_regex, json_regex, wkt_regex
  from django.contrib.gis.geos import prototypes as capi
  from django.contrib.gis.geos.base import GEOSBase
 
</s> remove             if other.startswith('SRID=0;'):
                return self.ewkt == other[7:]  # Test only WKT part of other
            return self.ewkt == other
        elif isinstance(other, GEOSGeometry):
            return self.srid == other.srid and self.equals_exact(other)
        else:
            return False
 </s> add             try:
                other = GEOSGeometry.from_ewkt(other)
            except (ValueError, GEOSException):
                return False
        return isinstance(other, GEOSGeometry) and self.srid == other.srid and self.equals_exact(other) </s> remove                 g = wkt_r().read(force_bytes(wkt_m.group('wkt')))
 </s> add                 g = self._from_wkt(force_bytes(wkt_m.group('wkt')))
import re
   This module contains the 'base' GEOSGeometry object -- all GEOS Geometries
   inherit from this object.
  """
import re
  from ctypes import addressof, byref, c_double
  
  from django.contrib.gis import gdal
  from django.contrib.gis.geometry.regex import hex_regex, json_regex, wkt_regex
  from django.contrib.gis.geos import prototypes as capi
  from django.contrib.gis.geos.base import GEOSBase
keep keep add keep keep keep keep keep keep
 Fixed #28433 -- Made GEOSGeometry.__eq__() work correctly with non-canonical EWKT string. 
django/contrib/gis/geos/geometry.py