aboutsummaryrefslogtreecommitdiffstats
path: root/cryptography/hazmat/primitives/hmac.py
diff options
context:
space:
mode:
authorDavid Reid <dreid@dreid.org>2013-11-12 14:26:10 -0800
committerDavid Reid <dreid@dreid.org>2013-11-12 14:26:10 -0800
commit9d0d94d97cb8ed8d15b24018e20c08cf1f7b78b4 (patch)
treef3d3bd0b7d01e38baf4ebd9273d255ef497c7f3c /cryptography/hazmat/primitives/hmac.py
parent0bcbb41964014926c3c604efff68f2d11b592035 (diff)
downloadcryptography-9d0d94d97cb8ed8d15b24018e20c08cf1f7b78b4.tar.gz
cryptography-9d0d94d97cb8ed8d15b24018e20c08cf1f7b78b4.tar.bz2
cryptography-9d0d94d97cb8ed8d15b24018e20c08cf1f7b78b4.zip
Don't use self.__class__
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
)