Skip to content
This repository was archived by the owner on Apr 13, 2024. It is now read-only.

Commit 77c42ad

Browse files
committed
Use issubclass instead of isinstance in Singer construct
1 parent 1b061f9 commit 77c42ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

httpsig/sign.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def sign(self, data):
7979
signed = self._sign_rsa(data)
8080
elif self._hash:
8181
signed = self._sign_hmac(data)
82-
elif isinstance(self.sign_algorithm, SignAlgorithm):
82+
elif issubclass(type(self.sign_algorithm), SignAlgorithm):
8383
signed = self.sign_algorithm.sign(self.secret, data)
8484
if not signed:
8585
raise SystemError('No valid encryptor found.')

0 commit comments

Comments
 (0)