remove another use of cmp()
diff --git a/Lib/distutils/version.py b/Lib/distutils/version.py
index 7781437..79d458d 100644
--- a/Lib/distutils/version.py
+++ b/Lib/distutils/version.py
@@ -338,7 +338,12 @@
         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