]> TLD Linux GIT Repositories - tld-builder.git/blobdiff - TLD_Builder/load_balancer.py
- more pythin 3.x fixes
[tld-builder.git] / TLD_Builder / load_balancer.py
index a530f816f24b9ace40850ef833e3cb67e3670bf7..9560ed68d48054ef66af604a2e5670015e529dd9 100644 (file)
@@ -31,8 +31,8 @@ def builders_order():
 
     for l in f:
         line_no += 1
-        b = string.strip(l)
-        if bs.has_key(b):
+        b = l.strip()
+        if b in bs:
             bs[b] = line_no
         else:
             log.alert("found strange lock in got-lock: %s" % b)
@@ -40,7 +40,7 @@ def builders_order():
     def mycmp(b1, b2):
         return cmp(bs[b1], bs[b2])
 
-    bl.sort(mycmp)
+    bl.sort(key=mycmp)
 
     f.seek(0)
     f.truncate(0)