From 8238481262d2f4f14577b18289bd34cf99bf5bba Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Thu, 6 Feb 2020 11:52:18 -0800 Subject: [PATCH] Fix == between two Extensions. --- voussoirkit/pathclass.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/voussoirkit/pathclass.py b/voussoirkit/pathclass.py index 1a1ebe7..7e264a7 100644 --- a/voussoirkit/pathclass.py +++ b/voussoirkit/pathclass.py @@ -30,6 +30,8 @@ class Extension: return bool(self.ext) def __eq__(self, other): + if isinstance(other, Extension): + return self.ext == other.ext other = self.prep(other) return self.ext == other