Beispiel #1
0
 def __eq__(self, other):
     # Seems like a bit of a hack...
     if isinstance(other, SpecItem):
         return other == self
     if isinstance(other, (six.string_types, tuple, list)):
         other = AsdfVersion(other)
     return Version.__eq__(self, other)
Beispiel #2
0
 def __eq__(self, other):
     # Seems like a bit of a hack...
     if isinstance(other, SimpleSpec):
         return other == self
     if isinstance(other, (str, tuple, list)):
         other = AsdfVersion(other)
     return Version.__eq__(self, other)
Beispiel #3
0
 def __eq__(self, other):
     # Seems like a bit of a hack...
     if isinstance(other, SpecItem):
         return other == self
     if isinstance(other, (str, tuple, list)):
         other = AsdfVersion(other)
     return Version.__eq__(self, other)