diff --git a/passlib/handlers/argon2.py b/passlib/handlers/argon2.py index 68d1bb4..5ba6cae 100644 --- a/passlib/handlers/argon2.py +++ b/passlib/handlers/argon2.py @@ -700,7 +700,7 @@ def _calc_checksum(self, secret): self._stub_requires_backend() # NOTE: have to use super() here so that we don't recursively # call subclass's wrapped _calc_checksum - return super()._calc_checksum(secret) + return super(argon2, self)._calc_checksum(secret) class _CffiBackend(_Argon2Common): diff --git a/passlib/handlers/bcrypt.py b/passlib/handlers/bcrypt.py index 121a12c..799cfbf 100644 --- a/passlib/handlers/bcrypt.py +++ b/passlib/handlers/bcrypt.py @@ -599,7 +599,7 @@ def _calc_checksum(self, secret): self._stub_requires_backend() # NOTE: have to use super() here so that we don't recursively # call subclass's wrapped _calc_checksum, e.g. bcrypt_sha256._calc_checksum - return self._calc_checksum(secret) + return super(bcrypt, self)._calc_checksum(secret) class _BcryptBackend(_BcryptCommon): @@ -770,17 +770,17 @@ class _wrapped_bcrypt(bcrypt): # def hash(cls, secret, **kwds): # # bypass bcrypt backend overriding this method # # XXX: would wrapping bcrypt make this easier than subclassing it? - # return super().hash(secret, **kwds) + # return super(_BcryptCommon, cls).hash(secret, **kwds) # # @classmethod # def verify(cls, secret, hash): # # bypass bcrypt backend overriding this method - # return super().verify(secret, hash) + # return super(_BcryptCommon, cls).verify(secret, hash) # # @classmethod # def genhash(cls, secret, hash): # # bypass bcrypt backend overriding this method - # return super().genhash(secret, hash) + # return super(_BcryptCommon, cls).genhash(secret, hash) @classmethod def _check_truncate_policy(cls, secret):