X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=scripts%2Ftracediff2.py;fp=scripts%2Ftracediff2.py;h=255191e8c5bf93bd9a744ef558b4c28e7f386e2d;hb=96fc35dae084f7e24cbf872ef04fa2086fbfeeac;hp=0f59d87983df51be1a23bb8400c3c601d172402b;hpb=d64e5b2bcd7c7b84a87d3d25786216d1594ce0dd;p=apitrace diff --git a/scripts/tracediff2.py b/scripts/tracediff2.py index 0f59d87..255191e 100755 --- a/scripts/tracediff2.py +++ b/scripts/tracediff2.py @@ -58,7 +58,7 @@ class Blob: return 'blob(%u)' % self.size def __eq__(self, other): - return self.size == other.size and self.hash == other.hash + return isinstance(other, Blob) and self.size == other.size and self.hash == other.hash def __hash__(self): return self.hash