py3 compat

This commit is contained in:
Kovid Goyal 2020-09-20 08:32:21 +05:30
parent a8c3ebe418
commit 27811374ba
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -805,7 +805,7 @@ class GetTranslations(Translations): # {{{
for f in errfiles:
with open(f, 'r+b') as f:
raw = f.read()
raw = re.sub(rb'# \(pofilter\).*', '', raw)
raw = re.sub(rb'# \(pofilter\).*', b'', raw)
f.seek(0)
f.truncate()
f.write(raw)