X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/29ab945cc98e1bec1fed86eedd69c26479f52380..7475946199e7c363fcf125c5b26be173cd4010f3:/librarian/epub.py?ds=inline diff --git a/librarian/epub.py b/librarian/epub.py index eab2b18..223bde9 100644 --- a/librarian/epub.py +++ b/librarian/epub.py @@ -446,10 +446,10 @@ def transform(wldoc, verbose=False, cover = WLCover cover_file = StringIO() - bound_cover = cover(document.book_info) - bound_cover.save(cover_file) - cover_name = 'cover.%s' % bound_cover.ext() - zip.writestr(os.path.join('OPS', cover_name), cover_file.getvalue()) + c = cover(document.book_info) + c.save(cover_file) + c_name = 'cover.%s' % c.ext() + zip.writestr(os.path.join('OPS', c_name), cover_file.getvalue()) del cover_file cover_tree = etree.parse(get_resource('epub/cover.html'))