Skip to content

Commit

Permalink
change decodestring to b64decode as attribute does not exist in pytho…
Browse files Browse the repository at this point in the history
…n 3.9
  • Loading branch information
craigfern committed Mar 30, 2021
1 parent 42eaaf2 commit 54d976b
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 54d976b

Please sign in to comment.