]> TLD Linux GIT Repositories - tld-builder.git/blobdiff - TLD_Builder/util.py
- substitute cmp for python3
[tld-builder.git] / TLD_Builder / util.py
index b6bcc2460ff2053fc5494f72e3c6215b6efcbc78..602bad176fe9e4ba01c6d7f4344bd235dc0c2ae2 100644 (file)
@@ -112,3 +112,6 @@ def to_str(s):
         return s
     else:
         raise TypeError("Expected bytes or string, but got %s." % type(s))
+
+def cmp(a, b):
+    return (a > b) - (a < b)