remove another use of cmp()

This commit is contained in:
Benjamin Peterson 2009-02-16 18:22:15 +00:00
parent 821d0f8b1f
commit d67c60ff81

View file

@ -338,7 +338,12 @@ class LooseVersion (Version):
if isinstance(other, str):
other = LooseVersion(other)
return cmp(self.version, other.version)
if self.version == other.version:
return 0
if self.version < other.version:
return -1
if self.version > other.version:
return 1
# end class LooseVersion