From 54d976ba4b56daf3ac81cf87c9caab6a1c1bcb1a Mon Sep 17 00:00:00 2001 From: craigfern Date: Tue, 30 Mar 2021 19:31:22 -0400 Subject: [PATCH] change decodestring to b64decode as attribute does not exist in python 3.9 --- fulfil_client/serialization.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fulfil_client/serialization.py b/fulfil_client/serialization.py index 9a1f41d..5c97151 100644 --- a/fulfil_client/serialization.py +++ b/fulfil_client/serialization.py @@ -53,7 +53,7 @@ def __call__(self, dct): def _bytes_decoder(dct): cast = bytearray if bytes == str else bytes - return cast(base64.decodestring(dct['base64'].encode('utf-8'))) + return cast(base64.b64decode(dct['base64'].encode('utf-8'))) JSONDecoder.register('bytes', _bytes_decoder)