We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e77cd91 + f557be4 commit 776aef5Copy full SHA for 776aef5
src/cryptojwt/utils.py
@@ -126,12 +126,12 @@ def b64d(b):
126
return base64.urlsafe_b64decode(b)
127
128
129
-def b64e_enc_dec(str, encode="utf-8", decode="ascii"):
130
- return b64e(str.encode(encode)).decode(decode)
+def b64e_enc_dec(datastr, encode="utf-8", decode="ascii"):
+ return b64e(datastr.encode(encode)).decode(decode)
131
132
133
-def b64d_enc_dec(str, encode="ascii", decode="utf-8"):
134
- return b64d(str.encode(encode)).decode(decode)
+def b64d_enc_dec(datastr, encode="ascii", decode="utf-8"):
+ return b64d(datastr.encode(encode)).decode(decode)
135
136
137
def as_bytes(s):
0 commit comments