Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Unfreeze event before serializing with ujson #2483

Merged
merged 1 commit into from
Oct 11, 2017

Conversation

jeremycline
Copy link
Contributor

In newer versions of https://github.com/esnme/ultrajson, ujson does not
serialize frozendicts (introduced in ultrajson/ultrajson@53f85b1). Although
the PyPI version is still 1.35, Fedora ships with a build from commit
ultrajson/ultrajson@2f1d487. This causes the serialization to fail if the
distribution-provided package is used.

This runs the event through the unfreeze utility before serializing it.

Thanks to @ignatenkobrain for tracking down the root cause.

fixes #2351

Signed-off-by: Jeremy Cline [email protected]

In newer versions of https://github.com/esnme/ultrajson, ujson does not
serialize frozendicts (introduced in ultrajson/ultrajson@53f85b1). Although
the PyPI version is still 1.35, Fedora ships with a build from commit
ultrajson/ultrajson@2f1d487. This causes the serialization to fail if the
distribution-provided package is used.

This runs the event through the unfreeze utility before serializing it.

Thanks to @ignatenkobrain for tracking down the root cause.

fixes matrix-org#2351

Signed-off-by: Jeremy Cline <[email protected]>
@matrixbot
Copy link
Member

Can one of the admins verify this patch?

2 similar comments
@matrixbot
Copy link
Member

Can one of the admins verify this patch?

@matrixbot
Copy link
Member

Can one of the admins verify this patch?

@erikjohnston
Copy link
Member

@matrixbot ok to test

@erikjohnston erikjohnston changed the base branch from master to develop October 11, 2017 12:16
@erikjohnston erikjohnston merged commit bc7f3eb into matrix-org:develop Oct 11, 2017
@jeremycline jeremycline deleted the unfreeze-ujson-dump branch January 10, 2018 20:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants