fnp
/
librarian.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
move stats to L2
[librarian.git]
/
src
/
librarian
/
builders
/
mobi.py
diff --git
a/src/librarian/builders/mobi.py
b/src/librarian/builders/mobi.py
index
19b5036
..
a001e90
100644
(file)
--- a/
src/librarian/builders/mobi.py
+++ b/
src/librarian/builders/mobi.py
@@
-1,5
+1,7
@@
+# This file is part of Librarian, licensed under GNU Affero GPLv3 or later.
+# Copyright © Fundacja Wolne Lektury. See NOTICE for more information.
+#
import os
import os
-import six
import subprocess
from tempfile import NamedTemporaryFile
from librarian import functions, get_resource, OutputFile
import subprocess
from tempfile import NamedTemporaryFile
from librarian import functions, get_resource, OutputFile
@@
-41,5
+43,6
@@
class MobiBuilder(EpubBuilder):
'--mobi-file-type=both',
'--mobi-ignore-margins',
], **gen_kwargs)
'--mobi-file-type=both',
'--mobi-ignore-margins',
], **gen_kwargs)
+ devnull.close()
return OutputFile.from_filename(output_file.name)
return OutputFile.from_filename(output_file.name)