mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-06-02 12:13:26 +03:00
Don't compare pyaccess in __eq__
This commit is contained in:
parent
a7d21dec15
commit
f1cc194955
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user