From 6d69eab6caff7b87d32fab3c7178296e481eb8a4 Mon Sep 17 00:00:00 2001 From: Ayrx Date: Sat, 17 May 2014 16:59:31 +0800 Subject: Fixed TypeError and added documentation --- docs/hazmat/primitives/padding.rst | 3 +++ 1 file changed, 3 insertions(+) (limited to 'docs/hazmat/primitives/padding.rst') diff --git a/docs/hazmat/primitives/padding.rst b/docs/hazmat/primitives/padding.rst index 4092ac00..72378e1f 100644 --- a/docs/hazmat/primitives/padding.rst +++ b/docs/hazmat/primitives/padding.rst @@ -70,6 +70,9 @@ multiple of the block size. :return bytes: Returns the data that was padded or unpadded. :raises TypeError: Raised if data is not bytes. :raises cryptography.exceptions.AlreadyFinalized: See :meth:`finalize`. + :raises TypeError: This exception is raised if ``data`` is not a binary + type. This is ``str`` in Python 2 and ``bytes`` in + Python 3. .. method:: finalize() -- cgit v1.2.3