mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
in python3 OrderedDict and array are not the same
This commit is contained in:
parent
ae4087d522
commit
9077569c22
1 changed files with 2 additions and 2 deletions
|
@ -584,12 +584,12 @@ class ExtendedArgumentParser(argparse.ArgumentParser):
|
||||||
]
|
]
|
||||||
|
|
||||||
# Display each section (actions and subcategories)
|
# Display each section (actions and subcategories)
|
||||||
if actions_choices != []:
|
if actions_choices:
|
||||||
formatter.start_section("actions")
|
formatter.start_section("actions")
|
||||||
formatter.add_arguments([actions_subparser])
|
formatter.add_arguments([actions_subparser])
|
||||||
formatter.end_section()
|
formatter.end_section()
|
||||||
|
|
||||||
if subcategories_choices != []:
|
if subcategories_choices:
|
||||||
formatter.start_section("subcategories")
|
formatter.start_section("subcategories")
|
||||||
formatter.add_arguments([subcategories_subparser])
|
formatter.add_arguments([subcategories_subparser])
|
||||||
formatter.end_section()
|
formatter.end_section()
|
||||||
|
|
Loading…
Reference in a new issue