Skip to content

Commit 2707ba6

Browse files
Update Tools/i18n/msgfmt.py
Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
1 parent e0734a6 commit 2707ba6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Tools/i18n/msgfmt.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,8 @@ def make(filename, outfile):
161161
if not msgid:
162162
# Filter out POT-Creation-Date
163163
# See issue #131852
164-
msgstr = ''.join(line for line in msgstr.decode(encoding).splitlines(True)
165-
if 'POT-Creation-Date' not in line).encode(encoding)
164+
msgstr = b''.join(line for line in msgstr.splitlines(True)
165+
if not line.startswith(b'POT-Creation-Date'))
166166

167167
# See whether there is an encoding declaration
168168
p = HeaderParser()

0 commit comments

Comments
 (0)