diff options
| author | Bob Halley <halley@dnspython.org> | 2022-12-23 09:19:47 -0800 |
|---|---|---|
| committer | Bob Halley <halley@dnspython.org> | 2022-12-23 09:19:47 -0800 |
| commit | e29b9e8f68fc6f5ccc16bea9f833573ea24549c6 (patch) | |
| tree | 980895295f2de832103d8c1884b46f09886e99af /dns | |
| parent | 620e9ded364e5b2f6a2a50deff159f33dea3f210 (diff) | |
| download | dnspython-e29b9e8f68fc6f5ccc16bea9f833573ea24549c6.tar.gz | |
DNSSEC doco fixes.
Diffstat (limited to 'dns')
| -rw-r--r-- | dns/dnssec.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/dns/dnssec.py b/dns/dnssec.py index 3589b1f..d380ea1 100644 --- a/dns/dnssec.py +++ b/dns/dnssec.py @@ -111,7 +111,7 @@ def to_timestamp(value: Union[datetime, str, float, int]) -> int: raise TypeError("Unsupported timestamp type") -def key_id(key: Union[DNSKEY,CDNSKEY]) -> int: +def key_id(key: Union[DNSKEY, CDNSKEY]) -> int: """Return the key id (a 16-bit number) for the specified key. *key*, a ``dns.rdtypes.ANY.DNSKEY.DNSKEY`` @@ -201,7 +201,7 @@ def make_ds( The currently supported hashes are "SHA1", "SHA256", and "SHA384". Case does not matter for these strings. - *origin*, a ``dns.name.Name`` or ``None``. If `key` is a relative name, + *origin*, a ``dns.name.Name`` or ``None``. If *key* is a relative name, then it will be made absolute using the specified origin. *policy*, a ``dns.dnssec.Policy`` or ``None``. If ``None``, the default policy, @@ -274,7 +274,7 @@ def make_cds( The currently supported hashes are "SHA1", "SHA256", and "SHA384". Case does not matter for these strings. - *origin*, a ``dns.name.Name`` or ``None``. If `key` is a relative name, + *origin*, a ``dns.name.Name`` or ``None``. If *key* is a relative name, then it will be made absolute using the specified origin. Raises ``UnsupportedAlgorithm`` if the algorithm is unknown. @@ -888,7 +888,7 @@ def _make_dnskey( *algorithm*, a ``str`` or ``int`` specifying the DNSKEY algorithm. - *flags: DNSKEY flags field as an integer. + *flags*: DNSKEY flags field as an integer. *protocol*: DNSKEY protocol field as an integer. @@ -982,7 +982,7 @@ def _make_cdnskey( *algorithm*, a ``str`` or ``int`` specifying the DNSKEY algorithm. - *flags: DNSKEY flags field as an integer. + *flags*: DNSKEY flags field as an integer. *protocol*: DNSKEY protocol field as an integer. |
