-
Notifications
You must be signed in to change notification settings - Fork 377
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Swap json with simplejson #379
Comments
Thanks for the input @janmasarik! In the case of hvac, I believe the data types within the parsed JSON response from the
That said, I'm willing to track down and confirm or deny those concerns if meeting them gets us closer to a more consistent set of behaviors across Python 2.7 / 3.x. So I'll try to investigate the matter time permitting. Otherwise, please do feel free to submit any tentative contributions along those lines! The module release runbook steps in our contribution documentation (i.e., the "Package Publishing Checklist" section) are indeed more onerous than need-be at present. However that subset of the documentation is solely centered around handling new releases. I.e., incremental patches / pull requests are welcomed and any finicky bits around releasing those changes can be offloaded to this module's maintainers 😉. |
Thanks for your extensive response and thanks for the great work you are doing on I haven't dig into
However, I found simplejson issue where this behaviour is actually described as a bug, which makes sense as it doesn't keep the response type consistent as described in docs. For me, this is still a feature due to backwards compatibility, but I'm really not sure if it's the case with others + both of your points are indeed valid. Because of this, I would maybe change the subject of the issue to only add a warning about Py2 unicode behaviour. (or not as we should all migrate to Py3 anyway:-)). What do you think? |
A callout in this project's documentation sounds totally reasonable! I'll use this card to track that goal at the very least. |
Hey,
During implementation of
hvac
, I encountered issues with getting unicode instead of strings fromhvac.Client.read()
in python2. This is caused by legacy behaviour of built-injson
module which is used for loading the secret.As
json
seems as just outdatedsimplejson
(explanation), I think it would make sense to usesimplejson
instead.Basically the issue is:
This may easily raise issues in python2 as most of the code uses python2 strings (
"string_here"
, notu"string_here"
). Example isurllib.parse()
:I would happily contribute with this bugfix, but I would like to get your green light before following all that struggle mentioned in CONTRIBUTING. :-)
The text was updated successfully, but these errors were encountered: