diff options
author | Mark Adams <mark@markadams.me> | 2015-01-18 10:53:19 -0600 |
---|---|---|
committer | Mark Adams <mark@markadams.me> | 2015-01-18 10:53:19 -0600 |
commit | eff1505b5df81540eb6c3c73b1d8c924fd1c2ca5 (patch) | |
tree | ba7a79fe402317c00ace2eadeb5901ea463cb809 /jwt/algorithms.py | |
parent | f39d7eeda7dbd1aadcc44a364a717c2877b7db96 (diff) | |
download | pyjwt-eff1505b5df81540eb6c3c73b1d8c924fd1c2ca5.tar.gz |
Accidentally replaced a reference to bytes with text_type inadvertantly. Reverting...
Diffstat (limited to 'jwt/algorithms.py')
-rw-r--r-- | jwt/algorithms.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jwt/algorithms.py b/jwt/algorithms.py index cf3bd47..89ea75b 100644 --- a/jwt/algorithms.py +++ b/jwt/algorithms.py @@ -82,7 +82,7 @@ class HMACAlgorithm(Algorithm): self.hash_alg = hash_alg def prepare_key(self, key): - if not isinstance(key, string_types) and not isinstance(key, text_type): + if not isinstance(key, string_types) and not isinstance(key, bytes): raise TypeError('Expecting a string- or bytes-formatted key.') if isinstance(key, text_type): |