bdauvergne / python-oath

Python implementation of HOTP, TOTP and OCRA algorithms from OATH
BSD 3-Clause "New" or "Revised" License
128 stars 35 forks source link

Add python3 compatibility. #16

Closed WhyNotHugo closed 10 years ago

WhyNotHugo commented 10 years ago

Added python3 compatibility while retaining python2 backwards-compatibility as well. Notably google_authenticator has a try/except import, the rest is just updating deprecated/obsolete syntax.

WhyNotHugo commented 10 years ago

No, wait, my testing was all wrong and this does not pass all tests on python3. I'll post another request once I fix this, sorry.