summaryrefslogtreecommitdiff
path: root/dns/e164.py
diff options
context:
space:
mode:
authorBob Halley <halley@dnspython.org>2020-05-08 07:02:48 -0700
committerBob Halley <halley@dnspython.org>2020-05-08 07:02:48 -0700
commitc8484ecb460ef90a9db6d32eef09542d3e850c57 (patch)
treee27ee464c97472d21e393fa234a7db9af5946423 /dns/e164.py
parent91adcbf570bf5e00373ae47ceee0cefe684d5b70 (diff)
downloaddnspython-c8484ecb460ef90a9db6d32eef09542d3e850c57.tar.gz
in doco, text->str, binary->bytes
Diffstat (limited to 'dns/e164.py')
-rw-r--r--dns/e164.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/dns/e164.py b/dns/e164.py
index ab14041..d6e695b 100644
--- a/dns/e164.py
+++ b/dns/e164.py
@@ -32,7 +32,7 @@ def from_e164(text, origin=public_enum_domain):
Non-digits in the text are ignored, i.e. "16505551212",
"+1.650.555.1212" and "1 (650) 555-1212" are all the same.
- *text*, a ``text``, is an E.164 number in textual form.
+ *text*, a ``str``, is an E.164 number in textual form.
*origin*, a ``dns.name.Name``, the domain in which the number
should be constructed. The default is ``e164.arpa.``.
@@ -62,7 +62,7 @@ def to_e164(name, origin=public_enum_domain, want_plus_prefix=True):
*want_plus_prefix* is a ``bool``. If True, add a '+' to the beginning of
the returned number.
- Returns a ``text``.
+ Returns a ``str``.
"""
if origin is not None:
@@ -82,7 +82,7 @@ def query(number, domains, resolver=None):
e.g. lookup('16505551212', ['e164.dnspython.org.', 'e164.arpa.'])
- *number*, a ``text`` is the number to look for.
+ *number*, a ``str`` is the number to look for.
*domains* is an iterable containing ``dns.name.Name`` values.