aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2013-10-19 22:34:38 -0500
committerPaul Kehrer <paul.l.kehrer@gmail.com>2013-10-19 22:34:38 -0500
commit746815b8f2b6a485b41e37c67969ed21338946db (patch)
treecef8d5454e951721ed92cd71c5e0b23c7ebc0551
parent6b9ddeb015e3e36ba955c58191820ba1c07bdd76 (diff)
downloadcryptography-746815b8f2b6a485b41e37c67969ed21338946db.tar.gz
cryptography-746815b8f2b6a485b41e37c67969ed21338946db.tar.bz2
cryptography-746815b8f2b6a485b41e37c67969ed21338946db.zip
update method signature for hash update to be consistent with the docs
-rw-r--r--cryptography/primitives/hashes.py4
1 files 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())