From 42a446748d2800fc7dedd4f99e1ccc5353984509 Mon Sep 17 00:00:00 2001 From: Arceliar Date: Wed, 29 May 2013 23:10:30 +0200 Subject: [PATCH] Consistent use of i as an iterator. --- src/proofofwork.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/proofofwork.py b/src/proofofwork.py index 9054e0f5..03d7c22d 100644 --- a/src/proofofwork.py +++ b/src/proofofwork.py @@ -19,9 +19,9 @@ def run(target, initialHash): for i in range(pool_size): result.append(pool.apply_async(_pool_worker, args = (i, initialHash, target, pool_size))) while True: - for counter in range(pool_size): - if result[counter].ready(): - result = result[counter].get() + for i in range(pool_size): + if result[i].ready(): + result = result[i].get() pool.terminate() return result[0], result[1] time.sleep(1)