169
169
def __eq__(self, other):
171
if self.spec is None:
174
if not isinstance(other, RevisionSpec):
175
raise TypeError('Do not know how to compare a RevisionSpec against a %s' % type(other))
176
return self.spec == other.spec
170
if isinstance(other, RevisionSpec):
171
return self.spec == other.spec
172
return other == self.spec