diff options
author | Andrej Rode <mail@andrejro.de> | 2018-11-23 18:19:16 +0100 |
---|---|---|
committer | Håkon Vågsether <haakonsv@gmail.com> | 2018-12-18 23:18:27 +0100 |
commit | b6d83e74194f8d9d058f4b258a102ddb5a38352d (patch) | |
tree | 214206d9ec6809a498a53d3f8ccc39d3ca2a8da1 /grc/core/FlowGraph.py | |
parent | f32902f54d846dad48eba2f5286d266be6000580 (diff) |
C++ generation: rework the usage of translations
Previously the translations dict was eval'd back into python
land again. This can be avoided by using yaml.load to load the valid
yaml dict after rendering with mako.
Also translations were applied with str.replace before which did
fail for cases which need to add braces around a match. The usage
of re.sub works around that issue. Though now the keys in the
translations dict have to be valid regular expressions.
Diffstat (limited to 'grc/core/FlowGraph.py')
0 files changed, 0 insertions, 0 deletions