X-Git-Url: https://git.tld-linux.org/?p=tld-builder.git;a=blobdiff_plain;f=TLD_Builder%2Futil.py;h=602bad176fe9e4ba01c6d7f4344bd235dc0c2ae2;hp=b6bcc2460ff2053fc5494f72e3c6215b6efcbc78;hb=90e89153ad56b37c24ba84ec1ade4dd4984a4059;hpb=98894bf10f64d2133335f23117234f9f9ebefe0d diff --git a/TLD_Builder/util.py b/TLD_Builder/util.py index b6bcc24..602bad1 100644 --- a/TLD_Builder/util.py +++ b/TLD_Builder/util.py @@ -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)