예제 #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)
예제 #2
0
파일: versioning.py 프로젝트: Cadair/asdf
 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)
예제 #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)