Kaydet (Commit) 196da41e authored tarafından Sergey Fedoseev's avatar Sergey Fedoseev Kaydeden (comit) Tim Graham

Removed SRID use in PostGISAdapter.__eq__() and __hash__().

EWKB already contains the SRID.
üst e06cab26
......@@ -36,10 +36,10 @@ class PostGISAdapter:
def __eq__(self, other):
if not isinstance(other, PostGISAdapter):
return False
return (self.ewkb == other.ewkb) and (self.srid == other.srid)
return self.ewkb == other.ewkb
def __hash__(self):
return hash((self.ewkb, self.srid))
return hash(self.ewkb)
def __str__(self):
return self.getquoted()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment