Fix == between two Extensions.

master
Ethan Dalool 2020-02-06 11:52:18 -08:00
parent a8ef6ca2c2
commit 8238481262
1 changed files with 2 additions and 0 deletions

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