From 96fc35dae084f7e24cbf872ef04fa2086fbfeeac Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Fri, 5 Oct 2012 20:55:43 +0100 Subject: [PATCH] Fix diffing between blobs and null. --- scripts/tracediff2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.45.2