relocate_text: fix return value (#48568)

This commit is contained in:
Harmen Stoppels 2025-01-14 13:29:06 +01:00 committed by Harmen Stoppels
parent 1db11ff06b
commit a298296237

View File

@ -209,7 +209,7 @@ def _apply_to_file(self, f):
# but it's nasty to deal with matches across boundaries, so let's stick to
# something simple.
modified = True
modified = False
for match in self.regex.finditer(f.read()):
# The matching prefix (old) and its replacement (new)