We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 25a3199 commit 4cead93Copy full SHA for 4cead93
shapefile.py
@@ -855,14 +855,10 @@ def __dir__(self):
855
return default + fnames
856
857
def __eq__(self, other):
858
- return (
859
- isinstance(other, self.__class__)
860
- and self.__field_positions == other.__field_positions
861
- and self.oid == other.oid
862
- and len(self) == len(other)
863
- and all(val_self == val_other for val_self, val_other in izip(self, other))
864
- )
865
-
+ if isinstance(other, self.__class__):
+ if self.__field_positions != other.__field_positions:
+ return False
+ return list.__eq__(self, other)
866
867
class ShapeRecord(object):
868
"""A ShapeRecord object containing a shape along with its attributes.
0 commit comments