Skip to content
This repository has been archived by the owner on Apr 28, 2022. It is now read-only.

Commit

Permalink
Use issubclass instead of isinstance in Singer construct
Browse files Browse the repository at this point in the history
  • Loading branch information
fulder committed Aug 25, 2020
1 parent 1b061f9 commit 77c42ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion httpsig/sign.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def sign(self, data):
signed = self._sign_rsa(data)
elif self._hash:
signed = self._sign_hmac(data)
elif isinstance(self.sign_algorithm, SignAlgorithm):
elif issubclass(type(self.sign_algorithm), SignAlgorithm):
signed = self.sign_algorithm.sign(self.secret, data)
if not signed:
raise SystemError('No valid encryptor found.')
Expand Down

0 comments on commit 77c42ad

Please sign in to comment.