Fix == between two Extensions.

This commit is contained in:
Ethan Dalool 2020-02-06 11:52:18 -08:00
parent a8ef6ca2c2
commit 8238481262

View file

@ -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