compat.py 232 B

12345678910111213
  1. from .core import *
  2. from .codec import *
  3. def ToASCII(label):
  4. return encode(label)
  5. def ToUnicode(label):
  6. return decode(label)
  7. def nameprep(s):
  8. raise NotImplementedError("IDNA 2008 does not utilise nameprep protocol")