]> TLD Linux GIT Repositories - tld-builder.git/blobdiff - TLD_Builder/file_sender.py
- fix urllib imports
[tld-builder.git] / TLD_Builder / file_sender.py
index 056045826204a5a0a3646a98bb4d184187343a57..f5ef280e51824a03c3b0ecbcdf3c3e1d09606baa 100644 (file)
@@ -8,7 +8,7 @@ import time
 import shutil
 import sys
 import traceback
-import urllib
+import urllib.request
 from config import config, init_conf
 import mailer
 import path
@@ -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))