]> 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 a530f816f24b9ace40850ef833e3cb67e3670bf7..019c1844fb786c69e8cb94e45a9a366149ffdea4 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)