From ed966af0a743386d71346d6b601bdea2752e789e Mon Sep 17 00:00:00 2001 From: Tommi Virtanen Date: Wed, 20 Jul 2011 09:53:59 -0700 Subject: [PATCH] Use more idiomatic Python. --- s3tests/rand_readwrite.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/s3tests/rand_readwrite.py b/s3tests/rand_readwrite.py index a86dd25..96f3f2c 100644 --- a/s3tests/rand_readwrite.py +++ b/s3tests/rand_readwrite.py @@ -49,7 +49,7 @@ class Result: ) def reader(bucket, name, queue): - while (1): + while True: count = 0 for key in bucket.list(): fp = realistic.FileVerifier() @@ -71,7 +71,7 @@ def reader(bucket, name, queue): gevent.sleep(1) def writer(bucket, name, queue, quantity=1, file_size=1, file_stddev=0, file_name_seed=None): - while (1): + while True: r = random.randint(0, 65535) r2 = r if file_name_seed != None: