File: compat.py

package info (click to toggle)
python-idna 2.2-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 500 kB
  • ctags: 185
  • sloc: python: 10,159; sh: 12; makefile: 3
file content (12 lines) | stat: -rw-r--r-- 232 bytes parent folder | download | duplicates (52)
1
2
3
4
5
6
7
8
9
10
11
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")