Don't compare pyaccess in __eq__

This commit is contained in:
hugovk 2014-04-26 21:23:45 +03:00
parent a7d21dec15
commit f1cc194955

View File

@ -570,9 +570,8 @@ class Image:
d = (self.info == other.info) d = (self.info == other.info)
e = (self.category == other.category) e = (self.category == other.category)
f = (self.readonly == other.readonly) f = (self.readonly == other.readonly)
g = (self.pyaccess == other.pyaccess) g = (self.tobytes() == other.tobytes())
h = (self.tobytes() == other.tobytes()) return a and b and c and d and e and f and g
return a and b and c and d and e and f and g and h
def __ne__(self, other): def __ne__(self, other):
eq = (self == other) eq = (self == other)