This is an automated email from the ASF dual-hosted git repository.
brandonwilliams pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/cassandra.git
The following commit(s) were added to refs/heads/trunk by this push:
new a47be7e Fix gen-doc for python 3
a47be7e is described below
commit a47be7eddd5855fc7723d4080ca1a63c611efdab
Author: Angelo Polo <[email protected]>
AuthorDate: Sat Apr 4 11:51:44 2020 +0200
Fix gen-doc for python 3
Patch by Angelo Polo, reviewed by Ekaterina Dimitrova and
brandonwilliams for CASSANDRA-15693
---
doc/gen-nodetool-docs.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/doc/gen-nodetool-docs.py b/doc/gen-nodetool-docs.py
index cc784c2..67e56c1 100644
--- a/doc/gen-nodetool-docs.py
+++ b/doc/gen-nodetool-docs.py
@@ -57,7 +57,7 @@ def create_rst(command):
cmdName = command.group(0).strip()
cmdFilename = outdir + "/" + cmdName + ".txt"
rstFilename = outdir + "/" + cmdName + ".rst"
- with open(cmdFilename, "w+") as cmdFile:
+ with open(cmdFilename, "w+b") as cmdFile:
proc = Popen([nodetool, "help", cmdName], stdin=PIPE, stdout=PIPE)
(out, err) = proc.communicate()
cmdFile.write(out)
@@ -76,7 +76,7 @@ with open(outdir + "/nodetool.rst", "w+") as output:
output.write(command)
# create the command usage pages
-with open(helpfilename, "rw+") as helpfile:
+with open(helpfilename, "r+") as helpfile:
for commandLine in helpfile:
command = command_re.match(commandLine)
create_rst(command)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]