relocate_text: fix return value (#48568)

This commit is contained in:
Harmen Stoppels 2025-01-14 13:29:06 +01:00 committed by GitHub
parent aa88ced154
commit d72b371c8a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -208,7 +208,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)