pdf-redact-tools icon indicating copy to clipboard operation
pdf-redact-tools copied to clipboard

Add Python 3 support

Open legoktm opened this issue 5 years ago • 3 comments

This was intially generated by the automatic 2to3 converter, and then cleaned up by hand. It should be fully compatible with both Python 2.7 and Python 3+ (I tested on both).

print() is now a function, octal literals need an 'o' in them, and subprocess.check_output() returns bytes, which needs to be decoded into a str before comparison.


Python 2 goes EOL in a little over 6 months (https://pythonclock.org/), so I thought it would be a good time to add Python 3 support :)

legoktm avatar Jun 25 '19 03:06 legoktm

Downstream Debian bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=937264

legoktm avatar Sep 01 '19 00:09 legoktm

@micahflee anything I can do to move this along?

legoktm avatar Nov 11 '19 23:11 legoktm

I'm keen to see this happen too. If there's any extra work needed, I'm happy to help out.

fionn avatar Nov 20 '19 05:11 fionn