aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/FileGenerator.py
diff options
context:
space:
mode:
authormitchell <unknown>2020-05-09 16:59:30 -0400
committermitchell <unknown>2020-05-09 16:59:30 -0400
commit828770f0d1ed635d4ab43ad6d0cf0ae36f339cb0 (patch)
treeb6996eba4adf8a33038f341d541e5ec19146d90e /scripts/FileGenerator.py
parent49201487ef7048cf82b2421ef7954fc6a899f42b (diff)
downloadscintilla-mirror-828770f0d1ed635d4ab43ad6d0cf0ae36f339cb0.tar.gz
Updated generation scripts for LongTerm3 use.
Diffstat (limited to 'scripts/FileGenerator.py')
-rw-r--r--scripts/FileGenerator.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/FileGenerator.py b/scripts/FileGenerator.py
index 3e9662632..f52f55948 100644
--- a/scripts/FileGenerator.py
+++ b/scripts/FileGenerator.py
@@ -214,8 +214,8 @@ def FindSectionInList(lines, markers):
raise Exception("Could not find end marker " + markers[2])
return slice(start, end)
-def ReplaceREInFile(path, match, replace):
+def ReplaceREInFile(path, match, replace, count=0):
with codecs.open(path, "r", "utf-8") as f:
contents = f.read()
- contents = re.sub(match, replace, contents)
+ contents = re.sub(match, replace, contents, count)
UpdateFile(path, contents)