openpgp-python icon indicating copy to clipboard operation
openpgp-python copied to clipboard

Python 3 compatibility

Open muelli opened this issue 10 years ago • 1 comments

This is mainly about prints(), but also a few range()s. I think this requires Python 2.7 now, because of the io module, but I'm not sure. There will be workarounds if that's an issue.

muelli avatar Sep 17 '15 07:09 muelli

sorry but no it is not simply compatible. just look at the str.encode('hex') problematic and the encoding in general, you need to open the files with the encoding 'latin-1' or else you get an encoding error at the first read() operation

ghost avatar May 13 '18 17:05 ghost