]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
lint
authorBob Halley <halley@dnspython.org>
Fri, 26 Jun 2020 13:43:42 +0000 (06:43 -0700)
committerBob Halley <halley@dnspython.org>
Fri, 26 Jun 2020 13:43:42 +0000 (06:43 -0700)
dns/message.py

index e40e043f7f44a4886c417c7c54b7afa56d44f755..d280e856763c596c90fcb791cc5e7c7fc57867ef 100644 (file)
@@ -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)