MCPcopy
hub / github.com/borgbackup/borg / pack

Function pack

src/borg/helpers/msgpack.py:117–122  ·  view source on GitHub ↗
(o, stream, *, use_bin_type=USE_BIN_TYPE, unicode_errors=UNICODE_ERRORS, **kwargs)

Source from the content-addressed store, hash-verified

115
116
117def pack(o, stream, *, use_bin_type=USE_BIN_TYPE, unicode_errors=UNICODE_ERRORS, **kwargs):
118 assert unicode_errors == UNICODE_ERRORS
119 try:
120 return mp_pack(o, stream, use_bin_type=use_bin_type, unicode_errors=unicode_errors, **kwargs)
121 except Exception as e:
122 raise PackException(e)
123
124
125class Unpacker(mp_Unpacker):

Callers

nothing calls this directly

Calls 1

PackExceptionClass · 0.85

Tested by

no test coverage detected