Open ypcrts opened 4 years ago
I think saving some sanity and dropping python 2 is a smart move. The last release ever is done now and officially retired as of Jan 1. I am a hard ass on this one though and trying to force people off of legacy python.
https://pypi.org/project/idna/ this one might solve both the python2.7 problem and make life a little easier. Saves having to figure out striping -
off the end of strings if they are only ascii characters "test.com".encode('punycode')
-> test.com-
Need to be careful with cached properties and how do you extract the original form of the URL if thats something that needs supporting.
Goal: implement RFC3492 https://tools.ietf.org/html/rfc3492
In the constructor, Unicode input should be encoded as Punycode.
TODO:
punycode
from the python3codecs
library. https://docs.python.org/3/library/codecs.html