mirror of
https://github.com/dnet/pySSTV.git
synced 2025-12-06 07:12:00 +01:00
build_module_map: use OrderedDict if available
this results in a much nicer "usage" screen by argparse
This commit is contained in:
parent
c6504a7551
commit
6d3d2143b7
|
|
@ -47,7 +47,11 @@ def main():
|
|||
|
||||
|
||||
def build_module_map():
|
||||
module_map = {}
|
||||
try:
|
||||
from collections import OrderedDict
|
||||
module_map = OrderedDict()
|
||||
except ImportError:
|
||||
module_map = {}
|
||||
for module in SSTV_MODULES:
|
||||
for mode in module.MODES:
|
||||
module_map[mode.__name__] = mode
|
||||
|
|
|
|||
Loading…
Reference in a new issue