X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/eae370b75207e1dc15f5f3f7ee7a402c7721d9a8..f164694b5e7ad5ed5f6d95743f9259bd3a9292bd:/src/librarian/builders/mobi.py?ds=sidebyside 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)