From f1cc19495570d2f557349c023d740f29b7943033 Mon Sep 17 00:00:00 2001 From: hugovk Date: Sat, 26 Apr 2014 21:23:45 +0300 Subject: [PATCH] Don't compare pyaccess in __eq__ --- PIL/Image.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/PIL/Image.py b/PIL/Image.py index 8d97e1221..9424f4bd2 100644 --- a/PIL/Image.py +++ b/PIL/Image.py @@ -570,9 +570,8 @@ class Image: d = (self.info == other.info) e = (self.category == other.category) f = (self.readonly == other.readonly) - g = (self.pyaccess == other.pyaccess) - h = (self.tobytes() == other.tobytes()) - return a and b and c and d and e and f and g and h + g = (self.tobytes() == other.tobytes()) + return a and b and c and d and e and f and g def __ne__(self, other): eq = (self == other)