MCPcopy Index your code
hub / github.com/RustPython/RustPython / dumps

Function dumps

Lib/plistlib.py:941–948  ·  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

939
940
941def dumps(value, *, fmt=FMT_XML, skipkeys=False, sort_keys=True,
942 aware_datetime=False):
943 """Return a bytes object with the contents for a .plist file.
944 """
945 fp = BytesIO()
946 dump(value, fp, fmt=fmt, skipkeys=skipkeys, sort_keys=sort_keys,
947 aware_datetime=aware_datetime)
948 return fp.getvalue()

Callers 1

stdlib_array.pyFile · 0.50

Calls 3

getvalueMethod · 0.95
BytesIOClass · 0.90
dumpFunction · 0.70

Tested by

no test coverage detected