mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
ANother resourcewarning
This commit is contained in:
parent
42c85dfab8
commit
e168c30867
@ -56,7 +56,8 @@ def get_simple_book(fmt='epub'):
|
|||||||
if needs_recompile(ans, src):
|
if needs_recompile(ans, src):
|
||||||
with TemporaryDirectory('bpt') as tdir:
|
with TemporaryDirectory('bpt') as tdir:
|
||||||
with CurrentDir(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, {
|
raw = add_resources(raw, {
|
||||||
'LMONOI': P('fonts/liberation/LiberationMono-Italic.ttf'),
|
'LMONOI': P('fonts/liberation/LiberationMono-Italic.ttf'),
|
||||||
'LMONOR': P('fonts/liberation/LiberationMono-Regular.ttf'),
|
'LMONOR': P('fonts/liberation/LiberationMono-Regular.ttf'),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user