mirror of https://github.com/apache/cassandra
Merge branch 'cassandra-4.0' into cassandra-4.1
This commit is contained in:
commit
a479989020
|
|
@ -47,8 +47,10 @@ def batched(iterable, n):
|
|||
if n < 1:
|
||||
raise ValueError('n must be at least one')
|
||||
it = iter(iterable)
|
||||
while (batch := tuple(islice(it, n))):
|
||||
batch = tuple(islice(it, n))
|
||||
while (batch):
|
||||
yield batch
|
||||
batch = tuple(islice(it, n))
|
||||
|
||||
# create the documentation directory
|
||||
if not os.path.exists(outdir):
|
||||
|
|
|
|||
Loading…
Reference in New Issue