Skip to content

Commit

Permalink
fix: don't overload primitives
Browse files Browse the repository at this point in the history
  • Loading branch information
peppelinux authored Nov 14, 2024
1 parent e77cd91 commit f557be4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/cryptojwt/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,12 @@ def b64d(b):
return base64.urlsafe_b64decode(b)


def b64e_enc_dec(str, encode="utf-8", decode="ascii"):
return b64e(str.encode(encode)).decode(decode)
def b64e_enc_dec(datastr, encode="utf-8", decode="ascii"):
return b64e(datastr.encode(encode)).decode(decode)


def b64d_enc_dec(str, encode="ascii", decode="utf-8"):
return b64d(str.encode(encode)).decode(decode)
def b64d_enc_dec(datastr, encode="ascii", decode="utf-8"):
return b64d(datastr.encode(encode)).decode(decode)


def as_bytes(s):
Expand Down

0 comments on commit f557be4

Please sign in to comment.