Demonware / jose

Python implementation of the Javascript Object Signing and Encryption (JOSE) framework (https://datatracker.ietf.org/wg/jose/charter/)
BSD 3-Clause "New" or "Revised" License
95 stars 34 forks source link

Python 3 support #13

Closed hmpf closed 8 years ago

hmpf commented 8 years ago

Will jose support python 3? I have been changing code to work on both 2 and 3 simulteanously since 2014, I can help you if you like.

Our tests currently stop on the print in cli_decrypt().

By changing the print to print() and adding "from future import print_function" jose'll work on python 2.6.0a2 and newer. If you replace the print with sys.stdout.println it'll work everywhere it works today. But since at least your travis only tests 2.7, I'd recommend print-the-function, and setting 2.7 in your setup.py.

nmurtagh commented 8 years ago

Hi there,

Please see #15!