MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / dump

Function dump

tools/python-3.11.9-amd64/Lib/plistlib.py:895–903  ·  view source on GitHub ↗

Write 'value' to a .plist file. 'fp' should be a writable, binary file object.

(value, fp, *, fmt=FMT_XML, sort_keys=True, skipkeys=False)

Source from the content-addressed store, hash-verified

893
894
895def dump(value, fp, *, fmt=FMT_XML, sort_keys=True, skipkeys=False):
896 """Write 'value' to a .plist file. 'fp' should be a writable,
897 binary file object.
898 """
899 if fmt not in _FORMATS:
900 raise ValueError("Unsupported format: %r"%(fmt,))
901
902 writer = _FORMATS[fmt]["writer"](fp, sort_keys=sort_keys, skipkeys=skipkeys)
903 writer.write(value)
904
905
906def dumps(value, *, fmt=FMT_XML, skipkeys=False, sort_keys=True):

Callers 1

dumpsFunction · 0.70

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected