Skip to content
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

cli: remove dependency on simplejson #3224

Merged
merged 1 commit into from
Apr 17, 2024
Merged

Conversation

FrostyX
Copy link
Member

@FrostyX FrostyX commented Apr 16, 2024

Fix #2539

The output of json.dumps and simplejson.dumps is equivalent for listing builds and listing packages. I am removing the for_json parameter because there is not equivalent. However it shouldn't make any difference because:

If for_json is true (not the default), objects with a for_json()
method will use the return value of that method for encoding as JSON
instead of the object.

We don't define any for_json methods for our objects.

Fix fedora-copr#2539

The output of `json.dumps` and `simplejson.dumps` is equivalent for
listing builds and listing packages. I am removing the `for_json`
parameter because there is not equivalent. However it shouldn't make
any difference because:

> If for_json is true (not the default), objects with a for_json()
> method will use the return value of that method for encoding as JSON
> instead of the object.

We don't define any `for_json` methods for our objects.
@FrostyX
Copy link
Member Author

FrostyX commented Apr 16, 2024

To my surprise this works even on EPEL7

@praiskup praiskup merged commit 4d5d292 into fedora-copr:main Apr 17, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Really remove dependency on simplejson
2 participants