aboutsummaryrefslogtreecommitdiffstats
path: root/cryptography/hazmat/primitives/hmac.py
diff options
context:
space:
mode:
Diffstat (limited to 'cryptography/hazmat/primitives/hmac.py')
-rw-r--r--cryptography/hazmat/primitives/hmac.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cryptography/hazmat/primitives/hmac.py b/cryptography/hazmat/primitives/hmac.py
index 27bc0fee..57a908c4 100644
--- a/cryptography/hazmat/primitives/hmac.py
+++ b/cryptography/hazmat/primitives/hmac.py
@@ -43,7 +43,7 @@ class HMAC(object):
self._ctx.update(msg)
def copy(self):
- return self.__class__(
+ return HMAC(
self._key, self.algorithm, ctx=self._ctx.copy(),
backend=self._backend
)