We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent adcd533 commit e0734a6Copy full SHA for e0734a6
Tools/i18n/msgfmt.py
@@ -161,13 +161,8 @@ def make(filename, outfile):
161
if not msgid:
162
# Filter out POT-Creation-Date
163
# See issue #131852
164
- import re
165
- msgstr = re.sub(
166
- r"^POT-Creation-Date:.*(?:\n|$)",
167
- "",
168
- msgstr.decode(encoding),
169
- flags=re.MULTILINE,
170
- ).encode(encoding)
+ msgstr = ''.join(line for line in msgstr.decode(encoding).splitlines(True)
+ if 'POT-Creation-Date' not in line).encode(encoding)
171
172
# See whether there is an encoding declaration
173
p = HeaderParser()
0 commit comments