aboutsummaryrefslogtreecommitdiffstats
path: root/cryptography/hazmat/primitives/hashes.py
diff options
context:
space:
mode:
Diffstat (limited to 'cryptography/hazmat/primitives/hashes.py')
-rw-r--r--cryptography/hazmat/primitives/hashes.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/cryptography/hazmat/primitives/hashes.py b/cryptography/hazmat/primitives/hashes.py
index a9b5b55a..2efd8484 100644
--- a/cryptography/hazmat/primitives/hashes.py
+++ b/cryptography/hazmat/primitives/hashes.py
@@ -47,10 +47,7 @@ class Hash(object):
if self._ctx is None:
raise AlreadyFinalized("Context was already finalized")
if not isinstance(data, six.binary_type):
- raise TypeError(
- "data must be binary type. This is str in Python 2 and bytes "
- "in Python 3"
- )
+ raise TypeError("data must be bytes")
self._ctx.update(data)
def copy(self):