From 9ecaf63fbe2343203078f0ab23e15948dc061bcb Mon Sep 17 00:00:00 2001 From: Tommi Virtanen Date: Wed, 20 Jul 2011 10:54:17 -0700 Subject: [PATCH] Code layout cleanup. --- s3tests/rand_readwrite.py | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/s3tests/rand_readwrite.py b/s3tests/rand_readwrite.py index 2b0b589..aa27ee2 100644 --- a/s3tests/rand_readwrite.py +++ b/s3tests/rand_readwrite.py @@ -119,18 +119,22 @@ def main(): print "Spawning {r} readers and {w} writers...".format(r=options.num_readers, w=options.num_writers) group = gevent.pool.Group() for x in xrange(options.num_writers): - group.spawn(writer, bucket, - name=x, - queue=q, - file_size=options.file_size, - file_stddev=options.stddev, - file_name_seed=r, - ) + group.spawn( + writer, + bucket=bucket, + name=x, + queue=q, + file_size=options.file_size, + file_stddev=options.stddev, + file_name_seed=r, + ) for x in xrange(options.num_readers): - group.spawn(reader, bucket, - name=x, - queue=q, - ) + group.spawn( + reader, + bucket=bucket, + name=x, + queue=q, + ) def stop(): group.kill(block=True) q.put(StopIteration)