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,6 +47,10 @@ def main():
|
||||||
|
|
||||||
|
|
||||||
def build_module_map():
|
def build_module_map():
|
||||||
|
try:
|
||||||
|
from collections import OrderedDict
|
||||||
|
module_map = OrderedDict()
|
||||||
|
except ImportError:
|
||||||
module_map = {}
|
module_map = {}
|
||||||
for module in SSTV_MODULES:
|
for module in SSTV_MODULES:
|
||||||
for mode in module.MODES:
|
for mode in module.MODES:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue