summaryrefslogtreecommitdiff
path: root/docs/socketexample.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/socketexample.rst')
-rw-r--r--docs/socketexample.rst9
1 files changed, 5 insertions, 4 deletions
diff --git a/docs/socketexample.rst b/docs/socketexample.rst
index d6818b3..9e7d7c0 100644
--- a/docs/socketexample.rst
+++ b/docs/socketexample.rst
@@ -231,15 +231,16 @@ to know about all the adapters that convert a German to a US socket type:
entry of the tuple is the name of the adapter and the second is the
adapter itself.
-Note that the names are ``unicode`` on Python 2:
+Note that the names are always text strings, meaning ``unicode`` on
+Python 2:
.. doctest::
>>> try:
- ... unicode = unicode
+ ... text = unicode
... except NameError:
- ... unicode = str
- >>> [isinstance(name, unicode) for name, _ in sockets]
+ ... text = str
+ >>> [isinstance(name, text) for name, _ in sockets]
[True, True, True]