%PDF- %PDF-
Direktori : /usr/lib/python2.7/site-packages/salt/serializers/ |
Current File : //usr/lib/python2.7/site-packages/salt/serializers/__init__.py |
# -*- coding: utf-8 -*- ''' 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 __future__ import absolute_import, print_function, unicode_literals from salt.exceptions import SaltException, SaltRenderError class DeserializationError(SaltRenderError, RuntimeError): """Raised when stream of string failed to be deserialized""" pass class SerializationError(SaltException, RuntimeError): """Raised when stream of string failed to be serialized""" pass