X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/b56beb67ff25d7a6ae42c841b9f10e681a748e22..f318053fb3349c5364cfb866b2a3d33c2423e12a:/librarian/epub.py 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'))