aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/FileGenerator.py
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2021-03-11 15:25:04 +1100
committerNeil <nyamatongwe@gmail.com>2021-03-11 15:25:04 +1100
commit2d83b1c0595668fd18f665a6406e948fda04118a (patch)
tree26d5fc90d3fc6d4d1b40d736319f03f1be0b3972 /scripts/FileGenerator.py
parent0ccb4e59e0551fd90dbda4ec3f8ad3e7c5d904ee (diff)
downloadscintilla-mirror-2d83b1c0595668fd18f665a6406e948fda04118a.tar.gz
Only substitute one instance of RE for ReplaceREInFile.
Diffstat (limited to 'scripts/FileGenerator.py')
-rw-r--r--scripts/FileGenerator.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/FileGenerator.py b/scripts/FileGenerator.py
index cf949901c..9fb32f46a 100644
--- a/scripts/FileGenerator.py
+++ b/scripts/FileGenerator.py
@@ -217,5 +217,5 @@ def FindSectionInList(lines, markers):
def ReplaceREInFile(path, match, replace):
with codecs.open(path, "r", "utf-8") as f:
contents = f.read()
- contents = re.sub(match, replace, contents)
+ contents = re.sub(match, replace, contents, 1)
UpdateFile(path, contents)