From: Greg Darke Date: Mon, 7 Jul 2008 06:03:58 +0000 (+1000) Subject: Changed comparison for end of list from "!=" to "<" X-Git-Url: https://code.delx.au/bg-scripts/commitdiff_plain/7bf3c42a3b8446c4eb09fafeecb07ace8cfadab2 Changed comparison for end of list from "!=" to "<" --- diff --git a/randombg.py b/randombg.py index 510d786..c20dd40 100755 --- a/randombg.py +++ b/randombg.py @@ -333,7 +333,7 @@ def do_client(options, args): sock = sock.makefile() for i, cmd in enumerate(args): sock.write("cmd %s\n" % cmd) - if i+1 != len(args): + if i < len(args) - 1: time.sleep(options.cycle_time) sock.close()