Add idna 2.6

This commit is contained in:
JonnyWong16 2018-01-02 09:03:55 -08:00
commit 1aee3b6c8f
8 changed files with 9793 additions and 0 deletions

12
lib/idna/compat.py Normal file
View file

@ -0,0 +1,12 @@
from .core import *
from .codec import *
def ToASCII(label):
return encode(label)
def ToUnicode(label):
return decode(label)
def nameprep(s):
raise NotImplementedError("IDNA 2008 does not utilise nameprep protocol")