( )⚙ D5712 wireprotov2server: use our JSON encoder

This is an archive of the discontinued Mercurial Phabricator instance.

wireprotov2server: use our JSON encoder
ClosedPublic

Authored by indygreg on Jan 26 2019, 2:43 PM.

Details

Summary

Python's json module doesn't like to encode bytes instances.
This makes this code difficult to work with Python 3.

We simply swap in Mercurial's JSON encoder to work around it.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

indygreg created this revision.Jan 26 2019, 2:43 PM
pulkit accepted this revision.Jan 26 2019, 4:31 PM
pulkit added a subscriber: pulkit.

Nice one!

This revision was automatically updated to reflect the committed changes.