]> TLD Linux GIT Repositories - tld-builder.git/blobdiff - TLD_Builder/load_balancer.py
- python 3.x fixes
[tld-builder.git] / TLD_Builder / load_balancer.py
index 2e182c89f8204f2ca9d3cc08440eaf415bc541d9..019c1844fb786c69e8cb94e45a9a366149ffdea4 100644 (file)
@@ -29,10 +29,10 @@ def builders_order():
     f = open(path.got_lock_file, "r+")
     line_no = 0
 
-    for l in f.xreadlines():
+    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)