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

Escape warning is Python 3.7 #33

Closed rudolphfroger closed 5 years ago

rudolphfroger commented 5 years ago

When using oath in Python 3.7 with warnings enabled one gets:

oath/_ocra.py:240: DeprecationWarning: invalid escape sequence \d
oath/_ocra.py:242: DeprecationWarning: invalid escape sequence \d

This is trivially solved by using raw strings (eg. r'\d+[HMS]').

bdauvergne commented 5 years ago

Fixed in c16d64bca34e67e8b2085c67ed45827387028b01

rudolphfroger commented 5 years ago

Thanks a lot! I think you just published a py2-only wheel on pypi.org. Could you publish tar.gz (like 1.4.2) or a py2+3 wheel? Thanks!