MCPcopy
hub / github.com/corpnewt/gibMacOS / loads

Function loads

Scripts/plist.py:185–193  ·  view source on GitHub ↗
(value, fmt=None, use_builtin_types=None, dict_type=dict)

Source from the content-addressed store, hash-verified

183 return p.root
184
185def loads(value, fmt=None, use_builtin_types=None, dict_type=dict):
186 if _check_py3() and isinstance(value, basestring):
187 # If it's a string - encode it
188 value = value.encode()
189 try:
190 return load(BytesIO(value),fmt=fmt,use_builtin_types=use_builtin_types,dict_type=dict_type)
191 except:
192 # Python 3.9 removed use_builtin_types
193 return load(BytesIO(value),fmt=fmt,dict_type=dict_type)
194
195def dump(value, fp, fmt=FMT_XML, sort_keys=True, skipkeys=False):
196 if fmt == FMT_BINARY:

Callers

nothing calls this directly

Calls 2

_check_py3Function · 0.85
loadFunction · 0.85

Tested by

no test coverage detected