X-Git-Url: https://git.tld-linux.org/?p=tld-builder.git;a=blobdiff_plain;f=TLD_Builder%2Fload_balancer.py;h=9560ed68d48054ef66af604a2e5670015e529dd9;hp=019c1844fb786c69e8cb94e45a9a366149ffdea4;hb=efb29ebd19be1db746873c582469d897b76f50ef;hpb=3a6296fff210d498302ce0a2da6beed689466347 diff --git a/TLD_Builder/load_balancer.py b/TLD_Builder/load_balancer.py index 019c184..9560ed6 100644 --- a/TLD_Builder/load_balancer.py +++ b/TLD_Builder/load_balancer.py @@ -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)