mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-19 21:03:21 -07:00
Add idna 2.6
This commit is contained in:
parent
04d4ffb63d
commit
1aee3b6c8f
8 changed files with 9793 additions and 0 deletions
12
lib/idna/compat.py
Normal file
12
lib/idna/compat.py
Normal 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")
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue