diff options
| author | Bob Halley <halley@dnspython.org> | 2020-05-09 13:30:45 -0700 |
|---|---|---|
| committer | Bob Halley <halley@dnspython.org> | 2020-05-09 13:30:45 -0700 |
| commit | d85b31d8be47bd7d8cfa67f7119ba833738a8038 (patch) | |
| tree | 272ef9acd1ff2e2518592599de33639ab1dd9b85 /dns/name.py | |
| parent | 9caf1923acc263606c207013b493ed86c47c34a4 (diff) | |
| download | dnspython-d85b31d8be47bd7d8cfa67f7119ba833738a8038.tar.gz | |
more documentation
Diffstat (limited to 'dns/name.py')
| -rw-r--r-- | dns/name.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/dns/name.py b/dns/name.py index c5a6423..addfa9a 100644 --- a/dns/name.py +++ b/dns/name.py @@ -159,6 +159,11 @@ class IDNA2003Codec(IDNACodec): class IDNA2008Codec(IDNACodec): """IDNA 2008 encoder/decoder. + """ + + def __init__(self, uts_46=False, transitional=False, + allow_pure_ascii=False, strict_decode=False): + """Initialize the IDNA 2008 encoder/decoder. *uts_46* is a ``bool``. If True, apply Unicode IDNA compatibility processing as described in Unicode Technical @@ -180,10 +185,6 @@ class IDNA2008Codec(IDNACodec): is done when decoding. This can cause failures if the name was encoded with IDNA2003. The default is False. """ - - def __init__(self, uts_46=False, transitional=False, - allow_pure_ascii=False, strict_decode=False): - """Initialize the IDNA 2008 encoder/decoder.""" super(IDNA2008Codec, self).__init__() self.uts_46 = uts_46 self.transitional = transitional |
