my.zotero: handle colors & extract human readable

This commit is contained in:
Dima Gerasimov 2021-04-11 18:42:51 +01:00 committed by karlicoss
parent 1ef2c5619e
commit 68d3385468
2 changed files with 26 additions and 9 deletions

View file

@ -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)