MCPcopy
hub / github.com/1Panel-dev/MaxKB / restricted_loads

Function restricted_loads

apps/common/utils/common.py:367–369  ·  view source on GitHub ↗

Helper function analogous to pickle.loads().

(s)

Source from the content-addressed store, hash-verified

365
366
367def restricted_loads(s):
368 """Helper function analogous to pickle.loads()."""
369 return RestrictedUnpickler(io.BytesIO(s)).load()
370
371
372def flat_map(array: List[List]):

Callers 3

import_Method · 0.90
import_Method · 0.90

Calls 1

RestrictedUnpicklerClass · 0.70

Tested by

no test coverage detected