mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
py3 compat
This commit is contained in:
parent
59dc40a22b
commit
b7608b71f9
@ -805,7 +805,7 @@ class GetTranslations(Translations): # {{{
|
||||
for f in errfiles:
|
||||
with open(f, 'r+b') as f:
|
||||
raw = f.read()
|
||||
raw = re.sub(r'# \(pofilter\).*', '', raw)
|
||||
raw = re.sub(rb'# \(pofilter\).*', '', raw)
|
||||
f.seek(0)
|
||||
f.truncate()
|
||||
f.write(raw)
|
||||
|
Loading…
x
Reference in New Issue
Block a user