]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
Improve validate() docs.
authorBrian Wellington <bwelling@xbill.org>
Mon, 11 May 2020 18:27:21 +0000 (11:27 -0700)
committerBrian Wellington <bwelling@xbill.org>
Mon, 11 May 2020 18:27:21 +0000 (11:27 -0700)
dns/dnssec.py

index 48a4a3fe9543f7bef5beb5e401bb7cc2a96627a5..c6f818d9cf305d9fd383af06ad8f16c485dafdf5 100644 (file)
@@ -464,8 +464,8 @@ def _validate_rrsig(rrset, rrsig, keys, origin=None, now=None):
 
 
 def _validate(rrset, rrsigset, keys, origin=None, now=None):
-    """Validate an RRset.  Returns ``None`` if at least one signature
-    validates, or throws an exception if no signature validates.
+    """Validate an RRset against a signature RRset, throwing an exception
+    if none of the signatures validate.
 
     *rrset*, the RRset to validate.  This can be a
     ``dns.rrset.RRset`` or a (``dns.name.Name``, ``dns.rdataset.Rdataset``)