Skip to content

Commit eff1505

Browse files
committed
Accidentally replaced a reference to bytes with text_type inadvertantly. Reverting...
1 parent f39d7ee commit eff1505

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jwt/algorithms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def __init__(self, hash_alg):
8282
self.hash_alg = hash_alg
8383

8484
def prepare_key(self, key):
85-
if not isinstance(key, string_types) and not isinstance(key, text_type):
85+
if not isinstance(key, string_types) and not isinstance(key, bytes):
8686
raise TypeError('Expecting a string- or bytes-formatted key.')
8787

8888
if isinstance(key, text_type):

0 commit comments

Comments
 (0)