Remove obsolete workaround for slow encoding of unicode characters.#30
Conversation
* Bump the version of simplejson to a version that properly handles ensure_ascii=False * Remove the manual unascii-ifying and use ensure_ascii=False, which is now at least as fast.
|
(I feel like the title of this PR isn't really descriptive, by the way. Not sure of a better way to succinctly describe this change.) |
yeah.
maybe? |
|
hrm, according to https://matrix.org/docs/spec/appendices#grammar they should (with a few exceptions for |
I added a test that checks from 0x00 to 0x7E (the last printable ASCII character). I might have gone overboard, but I figured why not. 😄 I did check the behavior of these on master first -- I can move them to a separate PR if we want to CI pass on them first. |
|
Arg, lint gets me every time on this repo. I think I might just black-ify it. |
ensure_ascii=False(>3.14.0)ensure_ascii=False, which is now at least as fast.