aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/rfnoc/nocscript
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2017-01-05 09:32:23 -0800
committerMartin Braun <martin.braun@ettus.com>2017-01-05 09:32:23 -0800
commit75f3270d0cc199bf0665bc1612fe8e1b020aee1f (patch)
treee5960aaf348a7e8ad11e5385eea944165228c9af /host/lib/rfnoc/nocscript
parent01181d2fa6270fbbbc34ff4cb1e75b44cb7f9e1b (diff)
parentf86f209b3370be54ec0870186ab1b9d8988736eb (diff)
downloaduhd-75f3270d0cc199bf0665bc1612fe8e1b020aee1f.tar.gz
uhd-75f3270d0cc199bf0665bc1612fe8e1b020aee1f.tar.bz2
uhd-75f3270d0cc199bf0665bc1612fe8e1b020aee1f.zip
Merge branch 'maint'
Diffstat (limited to 'host/lib/rfnoc/nocscript')
-rwxr-xr-xhost/lib/rfnoc/nocscript/gen_basic_funcs.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/host/lib/rfnoc/nocscript/gen_basic_funcs.py b/host/lib/rfnoc/nocscript/gen_basic_funcs.py
index 702b3e884..e4971d2e9 100755
--- a/host/lib/rfnoc/nocscript/gen_basic_funcs.py
+++ b/host/lib/rfnoc/nocscript/gen_basic_funcs.py
@@ -331,9 +331,9 @@ REGISTER_COMMANDS_TEMPLATE = """
);"""
DOXY_TEMPLATE = """/*! \page page_nocscript_funcs NocScript Function Reference
-% for cat, func_by_name in func_list_tree.iteritems():
+% for cat, func_by_name in func_list_tree.items():
- ${cat}
-% for func_name, func_info_list in func_by_name.iteritems():
+% for func_name, func_info_list in func_by_name.items():
- ${func_name}: ${func_info_list[0]['docstring']}
% for func_info in func_info_list:
- ${func_info['arglist']} -> ${func_info['retval']}
@@ -452,9 +452,9 @@ def write_manual_file(output_filename):
func_list = prep_function_list()
func_list_tree = {}
for func in func_list:
- if not func_list_tree.has_key(func['category']):
+ if func['category'] not in func_list_tree:
func_list_tree[func['category']] = {}
- if not func_list_tree[func['category']].has_key(func['name']):
+ if func['name'] not in func_list_tree[func['category']]:
func_list_tree[func['category']][func['name']] = []
func_list_tree[func['category']][func['name']].append(func)
open(output_filename, 'w').write(parse_tmpl(DOXY_TEMPLATE, func_list_tree=func_list_tree))