Skip to content

Commit

Permalink
set default separators of the json module in stdlib
Browse files Browse the repository at this point in the history
  • Loading branch information
SoulMelody committed Jan 7, 2025
1 parent fc62163 commit 4472e6f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libresvip/core/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
except ImportError:
import json

if hasattr(json, "_default_encoder"):
json._default_encoder.item_separator = ","
json._default_encoder.key_separator = ":"

try:
import pyzstd as zstd
except ImportError:
Expand Down

0 comments on commit 4472e6f

Please sign in to comment.