Commit edb64b0a authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

slap: Add docstring to json loads byteify

parent 06311c17
......@@ -766,6 +766,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