diff options
| author | Claude Paroz <claude@2xlibre.net> | 2016-05-01 19:21:43 +0200 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2016-05-02 19:41:13 +0200 |
| commit | 9c12eb55ceb2dff6e31399f5e258e4355e883930 (patch) | |
| tree | 5032f1e4b01ff94bcc3af165d6dfe62e2b42519b /django | |
| parent | 5fc5ff48d3e59f0b2fc58e8b198dade835cf8d58 (diff) | |
[1.9.x] Fixed #26341 (again) -- Addressed multiple occurrences per line use case
Backport of 4731e9d8 from master.
Diffstat (limited to 'django')
| -rw-r--r-- | django/core/management/commands/makemessages.py | 2 |
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 ) |
