my.zotero: handle colors & extract human readable
This commit is contained in:
parent
1ef2c5619e
commit
68d3385468
2 changed files with 26 additions and 9 deletions
|
@ -77,9 +77,9 @@ def _dumps_factory(**kwargs) -> Callable[[Any], str]:
|
|||
return _orjson_dumps
|
||||
except ModuleNotFoundError:
|
||||
import json
|
||||
import warnings
|
||||
from .warnings import high
|
||||
|
||||
warnings.warn("You might want to install 'orjson' to support serialization for lots more types!")
|
||||
high("You might want to install 'orjson' to support serialization for lots more types!")
|
||||
|
||||
def _stdlib_dumps(obj: Any) -> str:
|
||||
return json.dumps(obj, **kwargs)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue