mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-07 14:06:33 +01:00
ANother resourcewarning
This commit is contained in:
parent
42c85dfab8
commit
e168c30867
1 changed files with 2 additions and 1 deletions
|
|
@ -56,7 +56,8 @@ def get_simple_book(fmt='epub'):
|
|||
if needs_recompile(ans, src):
|
||||
with TemporaryDirectory('bpt') as tdir:
|
||||
with CurrentDir(tdir):
|
||||
raw = lopen(src, 'rb').read().decode('utf-8')
|
||||
with lopen(src, 'rb') as sf:
|
||||
raw = sf.read().decode('utf-8')
|
||||
raw = add_resources(raw, {
|
||||
'LMONOI': P('fonts/liberation/LiberationMono-Italic.ttf'),
|
||||
'LMONOR': P('fonts/liberation/LiberationMono-Regular.ttf'),
|
||||
|
|
|
|||
Loading…
Reference in a new issue