aboutsummaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2016-12-15 09:07:56 -0800
committerMartin Braun <martin.braun@ettus.com>2016-12-15 09:07:56 -0800
commit332b659bc70cc14b879be75405ed06ca92b1f0a0 (patch)
treef978a78cab5ec95c3ec87a58d814b262dbfcf2ac /host
parent2a72dd9094bea085995ba7c49d2e102403bdbc42 (diff)
downloaduhd-332b659bc70cc14b879be75405ed06ca92b1f0a0.tar.gz
uhd-332b659bc70cc14b879be75405ed06ca92b1f0a0.tar.bz2
uhd-332b659bc70cc14b879be75405ed06ca92b1f0a0.zip
nocscript: Fixed build issue on Py3k
Diffstat (limited to 'host')
-rwxr-xr-xhost/lib/rfnoc/nocscript/gen_basic_funcs.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/host/lib/rfnoc/nocscript/gen_basic_funcs.py b/host/lib/rfnoc/nocscript/gen_basic_funcs.py
index 702b3e884..20d3c82fd 100755
--- a/host/lib/rfnoc/nocscript/gen_basic_funcs.py
+++ b/host/lib/rfnoc/nocscript/gen_basic_funcs.py
@@ -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))