diff options
author | Håkon Vågsether <haakonsv@gmail.com> | 2018-12-02 21:58:11 +0100 |
---|---|---|
committer | Håkon Vågsether <haakonsv@gmail.com> | 2018-12-18 23:46:09 +0100 |
commit | c938d168478efbe59a1f54cbf3e10afe54a307b3 (patch) | |
tree | 439d5a8a34d266605ed7e7bb09003f0c5b8888e2 /grc/core/platform.py | |
parent | 4c4cfa3af3a48121b6107ad44b33e1ab88f619eb (diff) |
Fix C++ hier block generation
Diffstat (limited to 'grc/core/platform.py')
-rw-r--r-- | grc/core/platform.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/grc/core/platform.py b/grc/core/platform.py index 5449a117ad..88bc941495 100644 --- a/grc/core/platform.py +++ b/grc/core/platform.py @@ -366,10 +366,7 @@ class Platform(Element): ('metadata:\n', '\nmetadata:\n'), ] for r in replace: - # the purpose of using re.sub() here is to avoid corrupting the .grc file - out = re.sub(r'(nconnections)(?<!\\)', 'NCONNECTIONS', out) out = out.replace(*r) - out = re.sub(r'(NCONNECTIONS)(?<!\\)', 'nconnections', out) with open(filename, 'w', encoding='utf-8') as fp: fp.write(out) |