diff options
author | Ayrx <terrycwk1994@gmail.com> | 2014-05-17 19:47:09 +0800 |
---|---|---|
committer | Ayrx <terrycwk1994@gmail.com> | 2014-05-17 19:47:09 +0800 |
commit | 00eff9ca7fece942670429824cb77dd532190c96 (patch) | |
tree | 6fdc0df70cd1bbecd56049208899111a8edcd202 /docs/fernet.rst | |
parent | 6d69eab6caff7b87d32fab3c7178296e481eb8a4 (diff) | |
download | cryptography-00eff9ca7fece942670429824cb77dd532190c96.tar.gz cryptography-00eff9ca7fece942670429824cb77dd532190c96.tar.bz2 cryptography-00eff9ca7fece942670429824cb77dd532190c96.zip |
Simplified exception message
Diffstat (limited to 'docs/fernet.rst')
-rw-r--r-- | docs/fernet.rst | 8 |
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 |