summaryrefslogtreecommitdiff
path: root/jwt/algorithms.py
diff options
context:
space:
mode:
Diffstat (limited to 'jwt/algorithms.py')
-rw-r--r--jwt/algorithms.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/jwt/algorithms.py b/jwt/algorithms.py
index 3e8ea38..cf3bd47 100644
--- a/jwt/algorithms.py
+++ b/jwt/algorithms.py
@@ -112,7 +112,7 @@ if has_crypto:
isinstance(key, interfaces.RSAPublicKey):
return key
- if isinstance(key, basestring):
+ if isinstance(key, string_types):
if isinstance(key, text_type):
key = key.encode('utf-8')