mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-18 04:24:43 +01:00
py3 compat
This commit is contained in:
parent
59dc40a22b
commit
b7608b71f9
1 changed files with 1 additions and 1 deletions
|
|
@ -805,7 +805,7 @@ def check_website(self):
|
|||
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…
Reference in a new issue