booxtream-epub-drm-remover
booxtream-epub-drm-remover copied to clipboard
Python 3 support
This commit adds Python 3 (> 3.3?) support while retaining Python 2 compatibility. "Six" is used for easy version tests in Python; it's a single-file library that can be removed easily.
To make the "./cure.py" instruction actually work, a she-bang is added to cure.py.
If something breaks, try removing the cure_str selective coercion on file stuff and just always open the files in binary mode instead.
Instead of doing "from future" i should probably make everything explicit…
Extended support to more python versions by replacing b''
and u''
with six.b()
and six.u()
.