From: José Fonseca Date: Fri, 5 Oct 2012 19:55:43 +0000 (+0100) Subject: Fix diffing between blobs and null. X-Git-Url: https://git.notmuchmail.org/git?a=commitdiff_plain;h=96fc35dae084f7e24cbf872ef04fa2086fbfeeac;p=apitrace Fix diffing between blobs and null. --- 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