aboutsummaryrefslogtreecommitdiffstats
path: root/docs/fernet.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/fernet.rst')
-rw-r--r--docs/fernet.rst8
1 files changed, 2 insertions, 6 deletions
diff --git a/docs/fernet.rst b/docs/fernet.rst
index b75be779..1c4918ad 100644
--- a/docs/fernet.rst
+++ b/docs/fernet.rst
@@ -40,9 +40,7 @@ symmetric (also known as "secret key") authenticated cryptography.
:returns bytes: A secure message that cannot be read or altered
without the key. It is URL-safe base64-encoded. This is
referred to as a "Fernet token".
- :raises TypeError: This exception is raised if ``data`` is not a binary
- type. This is ``str`` in Python 2 and ``bytes`` in
- Python 3.
+ :raises TypeError: This exception is raised if ``data`` is not ``bytes``.
.. note::
@@ -69,9 +67,7 @@ symmetric (also known as "secret key") authenticated cryptography.
``ttl``, it is malformed, or
it does not have a valid
signature.
- :raises TypeError: This exception is raised if ``token`` is not a binary
- type. This is ``str`` in Python 2 and ``bytes`` in
- Python 3.
+ :raises TypeError: This exception is raised if ``token`` is not ``bytes``.
.. class:: InvalidToken