Skip to content

Navigation Menu

Sign in
Sign up

Remove simplejson dependency - #186

Open
pechersky wants to merge 1 commit into
aws:main from
pechersky:remove-simplejson
Open

Remove simplejson dependency #186
pechersky wants to merge 1 commit into
aws:main from
pechersky:remove-simplejson

Conversation

@pechersky

@pechersky pechersky commented Mar 23, 2025
edited
Loading

Copy link
Copy Markdown

Issue #, if available:

Description of changes:

Instead of relying on simplejson for decimal support implement decimal support directly

Remove the internal_json vs stock_json test comparison

Target (OCI, Managed Runtime, both): Managed runtime

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.


Motivation:

When simplejson is installed, requests behaves differently https://github.com/psf/requests/blob/1764cc938efc3cc9720188dfa6c3852c45211aa0/src/requests/compat.py#L59-L64 which affects custom JSONEncode/Decoders

xblitz reacted with thumbs up emoji
When simplejson is installed, `requests` behaves differently
https://github.com/psf/requests/blob/1764cc938efc3cc9720188dfa6c3852c45211aa0/src/requests/compat.py#L59-L64
which affects custom JSONEncode/Decoders
Instead of relying on simplejson for decimal support
implement decimal support directly
Remove the `internal_json` vs `stock_json` test comparison

xblitz commented Sep 26, 2025

Copy link
Copy Markdown

this is a great PR, removing the dependency in simplejson which btw has been pinned at a recent version (with no actual requirement on that version)
can this be reviewed? CC: @briensea

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

AltStyle によって変換されたページ (->オリジナル) /