diff options
| author | Bob Halley <halley@dnspython.org> | 2020-05-08 07:02:48 -0700 |
|---|---|---|
| committer | Bob Halley <halley@dnspython.org> | 2020-05-08 07:02:48 -0700 |
| commit | c8484ecb460ef90a9db6d32eef09542d3e850c57 (patch) | |
| tree | e27ee464c97472d21e393fa234a7db9af5946423 /dns/rcode.py | |
| parent | 91adcbf570bf5e00373ae47ceee0cefe684d5b70 (diff) | |
| download | dnspython-c8484ecb460ef90a9db6d32eef09542d3e850c57.tar.gz | |
in doco, text->str, binary->bytes
Diffstat (limited to 'dns/rcode.py')
| -rw-r--r-- | dns/rcode.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dns/rcode.py b/dns/rcode.py index 2215bef..85f8c2c 100644 --- a/dns/rcode.py +++ b/dns/rcode.py @@ -73,7 +73,7 @@ class UnknownRcode(dns.exception.DNSException): def from_text(text): """Convert text into an rcode. - *text*, a ``text``, the textual rcode or an integer in textual form. + *text*, a ``str``, the textual rcode or an integer in textual form. Raises ``dns.rcode.UnknownRcode`` if the rcode mnemonic is unknown. @@ -132,7 +132,7 @@ def to_text(value): Raises ``ValueError`` if rcode is < 0 or > 4095. - Returns a ``text``. + Returns a ``str``. """ if value < 0 or value > 4095: |
