[diffoscope] 01/01: comparators.utils.specialize: Compare types with identity not equality.
Chris Lamb
chris at chris-lamb.co.uk
Thu Sep 21 16:41:46 CEST 2017
This is an automated email from the git hooks/post-receive script.
lamby pushed a commit to branch master
in repository diffoscope.
commit 98de493be1d3f6d7447571d55374980ccfbab05a
Author: Chris Lamb <lamby at debian.org>
Date: Thu Sep 21 15:40:37 2017 +0100
comparators.utils.specialize: Compare types with identity not equality.
---
diffoscope/comparators/utils/specialize.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/diffoscope/comparators/utils/specialize.py b/diffoscope/comparators/utils/specialize.py
index eac941c..fcf6912 100644
--- a/diffoscope/comparators/utils/specialize.py
+++ b/diffoscope/comparators/utils/specialize.py
@@ -64,6 +64,6 @@ def is_direct_instance(file, cls):
if not isinstance(file, cls):
return False
for c in ComparatorManager().classes:
- if c != cls and isinstance(file, c):
+ if c is not cls and isinstance(file, c):
return False
return True
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git
More information about the diffoscope
mailing list