We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 070160c commit 825a031Copy full SHA for 825a031
canonicaljson.py
@@ -45,16 +45,6 @@ def set_json_library(json_lib):
45
json_lib: The module to use for JSON encoding. Must have a
46
`JSONEncoder` property.
47
"""
48
-
49
- # ideally we'd set ensure_ascii=False, but the ensure_ascii codepath is so
50
- # much quicker (assuming c speedups are enabled) that it's actually much
51
- # quicker to let it do that and then substitute back (it's about 2.5x
52
- # faster).
53
- #
54
- # (in any case, simplejson's ensure_ascii doesn't get U+2028 and U+2029
55
- # right, as per https://github.com/simplejson/simplejson/issues/206).
56
57
58
global _canonical_encoder
59
_canonical_encoder = json_lib.JSONEncoder(
60
ensure_ascii=False,
0 commit comments