summaryrefslogtreecommitdiff
path: root/grc/core/platform.py
diff options
context:
space:
mode:
Diffstat (limited to 'grc/core/platform.py')
-rw-r--r--grc/core/platform.py3
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)