]> TLD Linux GIT Repositories - tld-builder.git/blobdiff - TLD_Builder/file_sender.py
- substitute cmp for python3
[tld-builder.git] / TLD_Builder / file_sender.py
index 056045826204a5a0a3646a98bb4d184187343a57..b28980ee764fa3567e96faff6920c6af7321ce30 100644 (file)
@@ -163,9 +163,9 @@ def flush_queue(dir):
         d = read_name_val(f)
         if d != None: q.append(d)
     def mycmp(x, y):
-        rc = cmp(x['Time'], y['Time'])
+        rc = util.cmp(x['Time'], y['Time'])
         if rc == 0 and 'Type' in x and 'Type' in y:
-            return cmp(x['Type'], y['Type'])
+            return util.cmp(x['Type'], y['Type'])
         else:
             return rc
     q.sort(key=util.cmp_to_key(mycmp))