X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/e9aeedc51047d8d5e9e45c5253c776f8994da965..3a0c83394d5783715fab2be29fa1a9cfc3574e28:/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)