Skip to content
Snippets Groups Projects
Commit f667fd98 authored by Dmitry Marakasov's avatar Dmitry Marakasov
Browse files

devel/py-pyinstaller: fix build with python 3.10

Update internal help2rst.py script to support output of from python
3.10 argparse

Approved by:	portmgr blanket
parent 54647d78
No related branches found
No related tags found
No related merge requests found
--- doc/help2rst.py.orig 2019-07-09 19:14:04 UTC
+++ doc/help2rst.py
@@ -63,6 +63,9 @@ def process(program, generate_headings, headings_chara
elif '\noptional arguments:' in help:
# argparse style
help = help.split('\noptional arguments:', 1)[1]
+ elif '\noptions:' in help:
+ # argparse style, since python 3.10
+ help = help.split('\noptions:', 1)[1]
else:
raise SystemError('unexpected format of output for --help')
# Remove any obsolete options
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment