From f557be44b9dc0f6128c7e1e0792e51efef783df5 Mon Sep 17 00:00:00 2001 From: Giuseppe De Marco Date: Thu, 14 Nov 2024 22:37:26 +0100 Subject: [PATCH] fix: don't overload primitives --- src/cryptojwt/utils.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cryptojwt/utils.py b/src/cryptojwt/utils.py index 535c776..db41d64 100644 --- a/src/cryptojwt/utils.py +++ b/src/cryptojwt/utils.py @@ -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):