diff options
author | Bob Halley <halley@dnspython.org> | 2020-06-26 06:43:42 -0700 |
---|---|---|
committer | Bob Halley <halley@dnspython.org> | 2020-06-26 06:43:42 -0700 |
commit | d7159b0589f4deddce5404c1227075f3ad321d29 (patch) | |
tree | 80986d11ff7211a4f1b36243b2b7b299ecd4af69 | |
parent | cf1fa1604415694dc89c581047aebf5828659786 (diff) | |
download | dnspython-d7159b0589f4deddce5404c1227075f3ad321d29.tar.gz |
lint
-rw-r--r-- | dns/message.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dns/message.py b/dns/message.py index e40e043..d280e85 100644 --- a/dns/message.py +++ b/dns/message.py @@ -794,7 +794,7 @@ def _maybe_import_update(): # We avoid circular imports by doing this here. We do it in another # function as doing it in _message_factory_from_opcode() makes "dns" # a local symbol, and the first line fails :) - import dns.update + import dns.update # noqa: F401 def _message_factory_from_opcode(opcode): @@ -1000,7 +1000,7 @@ class _TextReader: rdclass = dns.rdataclass.IN # Type rdtype = dns.rdatatype.from_text(token.value) - rrset = self.message.find_rrset(self.message.question, name, + rrset = self.message.find_rrset(section, name, rdclass, rdtype, create=True, force_unique=True) self.message._validate_rrset(section_number, rrset) |