Commit c97eed64 authored by Cédric Le Ninivin's avatar Cédric Le Ninivin Committed by Romain Courteaud

slap: Add docstring to json loads byteify

parent 7347d375
......@@ -787,6 +787,9 @@ def _byteify(data, ignore_dicts = False):
return data
def json_loads_byteified(json_text):
"""
Encode string when loading JSON
"""
return _byteify(
json.loads(json_text, object_hook=_byteify),
ignore_dicts=True
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment