mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-10-12 18:38:03 +00:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user