Commit 348e5075 authored by Benjamin Peterson's avatar Benjamin Peterson

remove another use of cmp()

parent 181cd140
......@@ -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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment