diff options
author | Alexandre Morignot <erdnaxeli@gmail.com> | 2020-09-07 13:21:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-07 12:21:38 +0100 |
commit | 7586fdf1e839a764e9ce19b8c457dbd9367a5c25 (patch) | |
tree | 6676e72c33f49bf42c798e4695826868657f3136 /changelog.d/8262.bugfix | |
parent | Run database updates in a transaction (#8265) (diff) | |
download | synapse-7586fdf1e839a764e9ce19b8c457dbd9367a5c25.tar.xz |
Bump canonicaljson to version 1.4.0 (#8262)
The version 1.3.0 has a bug with unicode charecters: ``` >>> from canonicaljson import encode_pretty_printed_json >>> encode_pretty_printed_json({'a': 'à'}) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/erdnaxeli/.pyenv/versions/3.6.7/lib/python3.6/site-packages/canonicaljson.py", line 96, in encode_pretty_printed_json return _pretty_encoder.encode(json_object).encode("ascii") UnicodeEncodeError: 'ascii' codec can't encode character '\xe0' in position 12: ordinal not in range(128) ``` Signed-off-by: Alexandre Morignot <erdnaxeli@cervoi.se> Co-authored-by: Alexandre Morignot <erdnaxeli@cervoi.se>
Diffstat (limited to 'changelog.d/8262.bugfix')
-rw-r--r-- | changelog.d/8262.bugfix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/changelog.d/8262.bugfix b/changelog.d/8262.bugfix new file mode 100644 index 0000000000..2b84927de3 --- /dev/null +++ b/changelog.d/8262.bugfix @@ -0,0 +1 @@ +Upgrade canonicaljson to version 1.4.0 to fix an unicode encoding issue. |