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

Function packb

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

Source from the content-addressed store, hash-verified

107
108
109def packb(o, *, use_bin_type=USE_BIN_TYPE, unicode_errors=UNICODE_ERRORS, **kwargs):
110 assert unicode_errors == UNICODE_ERRORS
111 try:
112 return mp_packb(o, use_bin_type=use_bin_type, unicode_errors=unicode_errors, **kwargs)
113 except Exception as e:
114 raise PackException(e)
115
116
117def pack(o, stream, *, use_bin_type=USE_BIN_TYPE, unicode_errors=UNICODE_ERRORS, **kwargs):

Callers

nothing calls this directly

Calls 1

PackExceptionClass · 0.85

Tested by

no test coverage detected