Generate AES KeyPair lazily (#687)

* Generate AES KeyPair lazily

* Fix coverage

* Update post-review

* Fix pragma

* Make json dumps consistent between python and orjson

* Add comment

* Add comments re json parameter in HttpClient
This commit is contained in:
Steven B
2024-01-23 15:29:27 +00:00
committed by GitHub
parent 718983c401
commit e233e377ad
4 changed files with 58 additions and 24 deletions

View File

@@ -11,5 +11,9 @@ try:
except ImportError:
import json
dumps = json.dumps
def dumps(obj, *, default=None):
"""Dump JSON."""
# Separators specified for consistency with orjson
return json.dumps(obj, separators=(",", ":"))
loads = json.loads