This is an automated email from the ASF dual-hosted git repository.
brandonwilliams pushed a commit to branch cassandra-3.11
in repository https://gitbox.apache.org/repos/asf/cassandra.git
The following commit(s) were added to refs/heads/cassandra-3.11 by this push:
new 74b0b2086f remove walrus operator in gen-nodetool-docs.py
74b0b2086f is described below
commit 74b0b2086f3a7e838acde21c8020f10f0a47955a
Author: Brandon Williams <[email protected]>
AuthorDate: Mon Jan 30 07:46:54 2023 -0600
remove walrus operator in gen-nodetool-docs.py
Patch by brandonwilliams; reviewed by smiklosovic for CASSANDRA-18207
---
doc/scripts/gen-nodetool-docs.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/doc/scripts/gen-nodetool-docs.py b/doc/scripts/gen-nodetool-docs.py
index efb79cf7a4..d27e213b42 100644
--- a/doc/scripts/gen-nodetool-docs.py
+++ b/doc/scripts/gen-nodetool-docs.py
@@ -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):
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]