summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
Diffstat (limited to 'django')
-rw-r--r--django/core/management/commands/makemessages.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/core/management/commands/makemessages.py b/django/core/management/commands/makemessages.py
index f200a58784..0df47d306e 100644
--- a/django/core/management/commands/makemessages.py
+++ b/django/core/management/commands/makemessages.py
@@ -155,7 +155,7 @@ class BuildFile(object):
return re.sub(
r'^(#: .*)(' + re.escape(old_path) + r')',
- r'\1' + new_path,
+ lambda match: match.group().replace(old_path, new_path),
msgs,
flags=re.MULTILINE
)