Fix == between two Extensions.
This commit is contained in:
parent
a8ef6ca2c2
commit
8238481262
1 changed files with 2 additions and 0 deletions
|
@ -30,6 +30,8 @@ class Extension:
|
||||||
return bool(self.ext)
|
return bool(self.ext)
|
||||||
|
|
||||||
def __eq__(self, other):
|
def __eq__(self, other):
|
||||||
|
if isinstance(other, Extension):
|
||||||
|
return self.ext == other.ext
|
||||||
other = self.prep(other)
|
other = self.prep(other)
|
||||||
return self.ext == other
|
return self.ext == other
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue