X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/3754989331c91f1d78cd5c1904f768a4cf80f07a..b0224a1763fd71c1c9ed19e7663d94106a513dc8:/librarian/epub.py?ds=sidebyside diff --git a/librarian/epub.py b/librarian/epub.py index 10922d4..0c7a16c 100644 --- a/librarian/epub.py +++ b/librarian/epub.py @@ -16,7 +16,7 @@ import zipfile from tempfile import mkdtemp, NamedTemporaryFile from shutil import rmtree -from librarian import RDFNS, WLNS, NCXNS, OPFNS, XHTMLNS, OutputFile +from librarian import RDFNS, WLNS, NCXNS, OPFNS, XHTMLNS, IOFile from librarian.cover import WLCover from librarian import functions, get_resource @@ -560,4 +560,4 @@ def transform(wldoc, verbose=False, zip.writestr('OPS/toc.ncx', etree.tostring(toc_file, pretty_print=True)) zip.close() - return OutputFile.from_filename(output_file.name) + return IOFile.from_filename(output_file.name)