summaryrefslogtreecommitdiff
path: root/dns/query.py
diff options
context:
space:
mode:
authorBrian Wellington <bwelling@xbill.org>2020-05-21 10:53:24 -0700
committerBrian Wellington <bwelling@xbill.org>2020-05-21 10:53:24 -0700
commita1cddfabca128d326b5e6b6eaab21dff7d2b5bcc (patch)
treea128a04a92b3d192e72a67802624d19697f69fea /dns/query.py
parent985d9d8d2b18576d063cd84864498cc7362f60b8 (diff)
downloaddnspython-a1cddfabca128d326b5e6b6eaab21dff7d2b5bcc.tar.gz
Remove dns.rdata{type,class}.to_enum.
These methods (which convert a str/int into an enum/int) shouldn't be commonly used by external code, so don't need to exist at the module level. The make() method on the enum class (renamed from to_enum()) can still be used, and the internal callers have been updated to use it.
Diffstat (limited to 'dns/query.py')
-rw-r--r--dns/query.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/dns/query.py b/dns/query.py
index a20f28f..82c5710 100644
--- a/dns/query.py
+++ b/dns/query.py
@@ -786,7 +786,7 @@ def xfr(where, zone, rdtype=dns.rdatatype.AXFR, rdclass=dns.rdataclass.IN,
if isinstance(zone, str):
zone = dns.name.from_text(zone)
- rdtype = dns.rdatatype.to_enum(rdtype)
+ rdtype = dns.rdatatype.RdataType.make(rdtype)
q = dns.message.make_query(zone, rdtype, rdclass)
if rdtype == dns.rdatatype.IXFR:
rrset = dns.rrset.from_text(zone, 0, 'IN', 'SOA',