Skip to content
Snippets Groups Projects
Commit a8aa8025 authored by Alexander Schlemmer's avatar Alexander Schlemmer
Browse files

Merge branch 'f-transformer-replace-variables' into ruqad

parents 5f84d8fd 2b7035c4
No related branches found
No related tags found
1 merge request!217TST: Make NamedTemporaryFiles Windows-compatible
......@@ -575,10 +575,17 @@ class Converter(object, metaclass=ABCMeta):
" one element with they key being the name"
" of the function!")
tr_func_key = list(tr_func_el.keys())[0]
tr_func_params = tr_func_el[tr_func_key]
# Create a copy of the function parameters:
tr_func_params = dict(tr_func_el[tr_func_key])
if tr_func_key not in transformer_functions:
raise RuntimeError("Unknown transformer function: {}".format(tr_func_key))
# Do variable replacment on function parameters:
for key in tr_func_params:
tr_func_params[key] = replace_variables(tr_func_params[key])
# Retrieve the function from the dictionary:
tr_func = transformer_functions[tr_func_key]
# Call the function:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment