�
�Udac @` s� d d l m Z m Z m Z e Z d d l Z d d l Z d d l m Z d d l
m Z d d l m
Z
d � Z d e j f d � � YZ d S( i ( t absolute_importt divisiont print_functionN( t to_text( t Mapping( t is_sequencec C` s� t | d t � rG t | d t � rG i t | d d d d �d 6} n\ t | � ru g | D] } t | � ^ qZ } n. t | t � r� t d � | j � D� � } n | S( s� Recursively preprocess a data structure converting instances of ``AnsibleUnsafe``
into their JSON dict representations
Used in ``AnsibleJSONEncoder.iterencode``
t
__UNSAFE__t
__ENCRYPTED__t errorst surrogate_or_strictt nonstringt strictt __ansible_unsafec s` s'