X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/eae370b75207e1dc15f5f3f7ee7a402c7721d9a8..82c0860d1520489be56457829d49eb17f165b9cd:/src/librarian/builders/mobi.py diff --git a/src/librarian/builders/mobi.py b/src/librarian/builders/mobi.py index 19b5036..a001e90 100644 --- 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 six 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) + devnull.close() return OutputFile.from_filename(output_file.name)