3 Commits

Author SHA1 Message Date
solene
d4d25781d5 Update to py-canonicaljson-1.3.0
Diff from maintainer Renaud Allard
2020-08-20 12:57:58 +00:00
sthen
d9cfe4113e bump REVISION; python 3 default changed to 3.8 2020-07-03 21:12:24 +00:00
landry
6c3c38ae6e Import py-canonicaljson 1.1.4, from maintainer Renaud Allard.
Python module to encode JSON in a standard format.

* Encodes objects and arrays as RFC 7159 JSON.
* Sorts object keys so that you get the same result each time.
* Has no insignificant whitespace to make the output as small as possible.
* Escapes only the characters that must be escaped (U+0000 to U+0019,
  U+0022, U+0056), to keep the output as small as possible.
* Uses the shortest escape sequence for each escaped character.
* Encodes the JSON as UTF-8.
* Can encode "frozendict" immutable dictionaries.

dependency for upcoming synapse/matrix server port.

ok solene@
2020-03-08 16:21:42 +00:00