mirror of
https://github.com/ceph/s3-tests.git
synced 2024-11-25 13:47:27 +00:00
Use more idiomatic Python.
This commit is contained in:
parent
ad444b33ee
commit
ed966af0a7
1 changed files with 2 additions and 2 deletions
|
@ -49,7 +49,7 @@ class Result:
|
||||||
)
|
)
|
||||||
|
|
||||||
def reader(bucket, name, queue):
|
def reader(bucket, name, queue):
|
||||||
while (1):
|
while True:
|
||||||
count = 0
|
count = 0
|
||||||
for key in bucket.list():
|
for key in bucket.list():
|
||||||
fp = realistic.FileVerifier()
|
fp = realistic.FileVerifier()
|
||||||
|
@ -71,7 +71,7 @@ def reader(bucket, name, queue):
|
||||||
gevent.sleep(1)
|
gevent.sleep(1)
|
||||||
|
|
||||||
def writer(bucket, name, queue, quantity=1, file_size=1, file_stddev=0, file_name_seed=None):
|
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)
|
r = random.randint(0, 65535)
|
||||||
r2 = r
|
r2 = r
|
||||||
if file_name_seed != None:
|
if file_name_seed != None:
|
||||||
|
|
Loading…
Reference in a new issue