From: Bob Halley Date: Fri, 26 Jun 2020 13:43:42 +0000 (-0700) Subject: lint X-Git-Tag: v2.0.0rc2~61^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d7159b0589f4deddce5404c1227075f3ad321d29;p=thirdparty%2Fdnspython.git lint --- diff --git a/dns/message.py b/dns/message.py index e40e043f..d280e856 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)