MCPcopy Index your code
hub / github.com/python/cpython / dumps

Function dumps

Lib/plistlib.py:934–941  ·  view source on GitHub ↗

Return a bytes object with the contents for a .plist file.

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

Source from the content-addressed store, hash-verified

932
933
934def dumps(value, *, fmt=FMT_XML, skipkeys=False, sort_keys=True,
935 aware_datetime=False):
936 """Return a bytes object with the contents for a .plist file.
937 """
938 fp = BytesIO()
939 dump(value, fp, fmt=fmt, skipkeys=skipkeys, sort_keys=sort_keys,
940 aware_datetime=aware_datetime)
941 return fp.getvalue()

Callers

nothing calls this directly

Calls 3

getvalueMethod · 0.95
BytesIOClass · 0.90
dumpFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…