diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2013-10-19 12:00:20 -0500 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2013-10-19 21:50:13 -0500 |
commit | 9cd2ae4d4ca898cc4b9fee935d41422c70f9ccf1 (patch) | |
tree | 0d7303915b6c58b2e101ac3efb78c8726e2d0049 | |
parent | 36e7d0df315dca887f5b073e17209ee3eeb5a576 (diff) | |
download | cryptography-9cd2ae4d4ca898cc4b9fee935d41422c70f9ccf1.tar.gz cryptography-9cd2ae4d4ca898cc4b9fee935d41422c70f9ccf1.tar.bz2 cryptography-9cd2ae4d4ca898cc4b9fee935d41422c70f9ccf1.zip |
change basehash into an abc
-rw-r--r-- | cryptography/primitives/hashes.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cryptography/primitives/hashes.py b/cryptography/primitives/hashes.py index d0f4c226..a87d09e5 100644 --- a/cryptography/primitives/hashes.py +++ b/cryptography/primitives/hashes.py @@ -13,12 +13,16 @@ from __future__ import absolute_import, division, print_function +import abc + import binascii +import six + from cryptography.bindings import _default_api -class BaseHash(object): +class BaseHash(six.with_metaclass(abc.ABCMeta)): def __init__(self, api=None, ctx=None): if api is None: api = _default_api |