From 28a58aa5d7dfb220112187c4919999a98fed10a5 Mon Sep 17 00:00:00 2001 From: Fabio Caccamo Date: Fri, 21 Feb 2020 13:54:33 +0100 Subject: [PATCH] Removed unnecessary type check. --- benedict/serializers/base64.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/benedict/serializers/base64.py b/benedict/serializers/base64.py index e048ac7..1be1d34 100644 --- a/benedict/serializers/base64.py +++ b/benedict/serializers/base64.py @@ -35,7 +35,7 @@ class Base64CoreSerializer(AbstractSerializer): if encoding: value = value.encode(encoding) value = base64.b64decode(value) - if encoding and type_util.is_string(value): + if encoding: return value.decode(encoding) return value