firstlookmedia / pdf-redact-tools

a set of tools to help with securely redacting and stripping metadata from documents before publishing
Other
533 stars 48 forks source link

Add Python 3 support #34

Open legoktm opened 5 years ago

legoktm commented 5 years ago

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 commented 5 years ago

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

legoktm commented 4 years ago

@micahflee anything I can do to move this along?

fionn commented 4 years ago

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