booxtream-epub-drm-remover icon indicating copy to clipboard operation
booxtream-epub-drm-remover copied to clipboard

Python 3 support

Open Artoria2e5 opened this issue 6 years ago • 3 comments

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.

Artoria2e5 avatar Mar 13 '18 10:03 Artoria2e5

If something breaks, try removing the cure_str selective coercion on file stuff and just always open the files in binary mode instead.

Artoria2e5 avatar Mar 13 '18 10:03 Artoria2e5

Instead of doing "from future" i should probably make everything explicit…

Artoria2e5 avatar Mar 15 '18 00:03 Artoria2e5

Extended support to more python versions by replacing b'' and u'' with six.b() and six.u().

Artoria2e5 avatar Mar 15 '18 01:03 Artoria2e5