From 746815b8f2b6a485b41e37c67969ed21338946db Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Sat, 19 Oct 2013 22:34:38 -0500 Subject: update method signature for hash update to be consistent with the docs --- cryptography/primitives/hashes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cryptography/primitives/hashes.py b/cryptography/primitives/hashes.py index a87d09e5..e8c1f929 100644 --- a/cryptography/primitives/hashes.py +++ b/cryptography/primitives/hashes.py @@ -29,8 +29,8 @@ class BaseHash(six.with_metaclass(abc.ABCMeta)): self._api = api self._ctx = self._api.create_hash_context(self) if ctx is None else ctx - def update(self, string): - self._api.update_hash_context(self._ctx, string) + def update(self, data): + self._api.update_hash_context(self._ctx, data) def copy(self): return self.__class__(ctx=self._copy_ctx()) -- cgit v1.2.3