aerkalov / ebooklib

Python E-book library for handling books in EPUB2/EPUB3 format -
https://ebooklib.readthedocs.io/
GNU Affero General Public License v3.0
1.49k stars 234 forks source link

Return bytes in EpubHtml's get_body_content #319

Open joaoseckler opened 3 months ago

joaoseckler commented 3 months ago

The method's documentation states that in python 3 it return bytes, but was previously returning strings in some situations.

joaoseckler commented 2 months ago

If #293 were to be merged, this commit would need changes (i.e. replacing six.b("...") with b"..."