Merged revisions 69682 via svnmerge from

svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r69682 | benjamin.peterson | 2009-02-16 12:22:15 -0600 (Mon, 16 Feb 2009) | 1 line

  remove another use of cmp()
........
This commit is contained in:
Benjamin Peterson
2009-02-16 18:25:19 +00:00
parent 102e42a112
commit 04cee84ede

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