D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
saltstack
/
salt
/
lib
/
python3.10
/
site-packages
/
salt
/
serializers
/
Filename :
__init__.py
back
Copy
""" salt.serializers ~~~~~~~~~~~~~~~~~~~~~~ This module implements all the serializers needed by salt. Each serializer offers the same functions and attributes: :deserialize: function for deserializing string or stream :serialize: function for serializing a Python object :available: flag that tells if the serializer is available (all dependencies are met etc.) """ from salt.exceptions import SaltException, SaltRenderError class DeserializationError(SaltRenderError, RuntimeError): """Raised when stream of string failed to be deserialized""" class SerializationError(SaltException, RuntimeError): """Raised when stream of string failed to be serialized"""