Skip to content

Commit cb8bea5

Browse files
fanquakedongcarl
andcommitted
contrib: address gen-manpages feedback from bitcoin#24263
Co-authored-by: Carl Dong <contact@carldong.me>
1 parent 48a90c6 commit cb8bea5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/devtools/gen-manpages.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
print(f'{abspath} not found or not an executable', file=sys.stderr)
4343
sys.exit(1)
4444
# take first line (which must contain version)
45-
verstr = r.stdout.split('\n')[0]
45+
verstr = r.stdout.splitlines()[0]
4646
# last word of line is the actual version e.g. v22.99.0-5c6b3d5b3508
4747
verstr = verstr.split()[-1]
4848
assert verstr.startswith('v')

0 commit comments

Comments
 (0)