Skip to content

Commit eb2be96

Browse files
brentrubrentru
authored andcommitted
lintin!
1 parent 2a316eb commit eb2be96

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

adafruit_jwt.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646

4747
from adafruit_binascii import b2a_base64, a2b_base64
4848

49-
import string
5049

5150
__version__ = "0.0.0-auto.0"
5251
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_JWT.git"
@@ -111,8 +110,7 @@ def generate(claims, private_key_data=None, algo=None):
111110
# Compute the signature
112111
if algo == "none":
113112
jwt = "{}.{}".format(jose_header, claims)
114-
elif algo == "RS256" or algo == "RS384" or algo == "RS512" or algo == "RSA":
115-
#sig = sign(payload, priv_key, "SHA-256")
113+
elif algo in ("RS256", "RS384", "RS512"):
116114
signature = STRING_TOOLS.urlsafe_b64encode(
117115
sign(payload, priv_key, "SHA-256"))
118116
jwt = payload + "." + signature

0 commit comments

Comments
 (0)