Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def dumps_internal(obj):
return _Serializer().save(obj)
def dumps(obj):
""" return a serialized bytestring of the given obj.
The obj and all contained objects must be of a builtin
python type (so nested dicts, sets, etc. are all ok but
not user-level instances).
"""
return _Serializer().save(obj, versioned=True)
def dump(byteio, obj):
""" write a serialized bytestring of the given obj to the given stream. """
_Serializer(write=byteio.write).save(obj, versioned=True)