Read a .plist file from a bytes object. Return the unpacked root object (which usually is a dictionary).
(value, *, fmt=None, dict_type=dict)
| 885 | |
| 886 | |
| 887 | def loads(value, *, fmt=None, dict_type=dict): |
| 888 | """Read a .plist file from a bytes object. |
| 889 | Return the unpacked root object (which usually is a dictionary). |
| 890 | """ |
| 891 | fp = BytesIO(value) |
| 892 | return load(fp, fmt=fmt, dict_type=dict_type) |
| 893 | |
| 894 | |
| 895 | def dump(value, fp, *, fmt=FMT_XML, sort_keys=True, skipkeys=False): |