in python3 OrderedDict and array are not the same

This commit is contained in:
Kay0u 2021-01-26 12:05:05 +01:00
parent ae4087d522
commit 9077569c22
No known key found for this signature in database
GPG key ID: AAFEEB16CFA2AE2D

View file

@ -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()