Closed jmoiron closed 5 years ago
Terribly sorry to have let this sit for so long. Just saw that we have a few open PRs that nobody triaged :(
That aside, it looks like this issue was fixed in #44, so I'm going to mark this one as closed. Thanks for submitting a PR though!
When using this as a python module from python3 and providing it with a key file, it reads with 'rb', which causes python3 json library to choke:
There are two potential fixes; read with 'r' instead of 'rb', or decode the bytes into a string for json. I chose the latter, in case the fallback file format requires the bytes, but I did not test with the fallback format.
Sample code to cause this from this gist: