Skip to content

Commit

Permalink
Merge pull request #83 from craigfern/change-decodestring-to-python3.9
Browse files Browse the repository at this point in the history
change decodestring to b64decode
  • Loading branch information
prakashpp authored Apr 22, 2024
2 parents 42eaaf2 + 54d976b commit 368565b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fulfil_client/serialization.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 368565b

Please sign in to comment.