kopia lustrzana https://github.com/dnet/pySSTV
build_module_map: use OrderedDict if available
this results in a much nicer "usage" screen by argparsepull/19/head
rodzic
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
|
||||
|
|
Ładowanie…
Reference in New Issue