diff options
| author | Bob Halley <halley@dnspython.org> | 2016-09-25 12:28:04 -0700 |
|---|---|---|
| committer | Bob Halley <halley@dnspython.org> | 2016-09-25 12:28:04 -0700 |
| commit | 466ac0d89f584f8050a92add5ea3208860f5e92f (patch) | |
| tree | b79adbdfcd90306d703440322263d6a6fb500890 /dns/rrset.py | |
| parent | b6d6dba31ff06ccb714cc2a11b73933a4124efb7 (diff) | |
| download | dnspython-466ac0d89f584f8050a92add5ea3208860f5e92f.tar.gz | |
de-lint IDNA
Diffstat (limited to 'dns/rrset.py')
| -rw-r--r-- | dns/rrset.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/dns/rrset.py b/dns/rrset.py index b2fb301..d0f8f93 100644 --- a/dns/rrset.py +++ b/dns/rrset.py @@ -120,7 +120,7 @@ class RRset(dns.rdataset.Rdataset): def from_text_list(name, ttl, rdclass, rdtype, text_rdatas, - idna=None): + idna_codec=None): """Create an RRset with the specified name, TTL, class, and type, and with the specified list of rdatas in text format. @@ -128,7 +128,7 @@ def from_text_list(name, ttl, rdclass, rdtype, text_rdatas, """ if isinstance(name, string_types): - name = dns.name.from_text(name, None, idna=idna) + name = dns.name.from_text(name, None, idna_codec=idna_codec) if isinstance(rdclass, string_types): rdclass = dns.rdataclass.from_text(rdclass) if isinstance(rdtype, string_types): @@ -151,7 +151,7 @@ def from_text(name, ttl, rdclass, rdtype, *text_rdatas): return from_text_list(name, ttl, rdclass, rdtype, text_rdatas) -def from_rdata_list(name, ttl, rdatas, idna=None): +def from_rdata_list(name, ttl, rdatas, idna_codec=None): """Create an RRset with the specified name and TTL, and with the specified list of rdata objects. @@ -159,7 +159,7 @@ def from_rdata_list(name, ttl, rdatas, idna=None): """ if isinstance(name, string_types): - name = dns.name.from_text(name, None, idna=idna) + name = dns.name.from_text(name, None, idna_codec=idna_codec) if len(rdatas) == 0: raise ValueError("rdata list must not be empty") |
