wp-api-python icon indicating copy to clipboard operation
wp-api-python copied to clipboard

json.load no longer accepts an 'encoding'

Open mortoray opened this issue 2 years ago • 2 comments

Loading of credentials no longer works due to this line:

creds = json.load(creds_store_file, encoding='utf-8')

Because json.load does not accept an "encoding" parameter anymore, just assuming it'll be utf encoded.

mortoray avatar Jan 08 '23 10:01 mortoray

Hello, I needed for a project so I fixed and create a fork if you need it: https://github.com/Synoptik-Labs/wp-api-python. I may fix some others issues too.

nioupola avatar Mar 24 '23 05:03 nioupola

Thanks @tete2soja , Ive linked to your repo in the readme.

d3v-null avatar Mar 24 '23 13:03 d3v-null