Anons79 Mini Shell

Directory : /lib/python2.7/site-packages/ansible/module_utils/common/
Upload File :
Current File : //lib/python2.7/site-packages/ansible/module_utils/common/json.pyo

�
�Udac@`s�ddlmZmZmZeZddlZddlZddlm	Z	ddl
mZddlm
Z
d�Zdejfd��YZdS(	i(tabsolute_importtdivisiontprint_functionN(tto_text(tMapping(tis_sequencecC`s�t|dt�rGt|dt�rGit|dddd�d6}n\t|�rug|D]}t|�^qZ}n.t|t�r�td�|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__terrorstsurrogate_or_strictt	nonstringtstrictt__ansible_unsafecs`s'|]\}}|t|�fVqdS(N(t_preprocess_unsafe_encode(t.0tktv((sD/usr/lib/python2.7/site-packages/ansible/module_utils/common/json.pys	<genexpr>s(	tgetattrtFalseRRR
t
isinstanceRtdicttitems(tvalueR((sD/usr/lib/python2.7/site-packages/ansible/module_utils/common/json.pyR
s%""tAnsibleJSONEncodercB`s/eZdZeed�Zd�Zd�ZRS(sS
    Simple encoder class to deal with JSON encoding of Ansible internal types
    cK`s,||_||_tt|�j|�dS(N(t_preprocess_unsafet_vault_to_texttsuperRt__init__(tselftpreprocess_unsafet
vault_to_texttkwargs((sD/usr/lib/python2.7/site-packages/ansible/module_utils/common/json.pyR's		cC`s�t|dt�rU|jr0t|dd�}q�it|jdddd�d6}n�t|dt�r�it|dddd�d6}n`t|t�r�t|�}nBt|tj	tjf�r�|j
�}ntt|�j
|�}|S(	NRRR	R
Rt__ansible_vaultRR(RRRRt_ciphertextRRRtdatetimetdatet	isoformatRRtdefault(RtoR((sD/usr/lib/python2.7/site-packages/ansible/module_utils/common/json.pyR%-s	%"cK`s1|jrt|�}ntt|�j||�S(s�Custom iterencode, primarily design to handle encoding ``AnsibleUnsafe``
        as the ``AnsibleUnsafe`` subclasses inherit from string types and
        ``json.JSONEncoder`` does not support custom encoders for string types
        (RR
RRt
iterencode(RR&R((sD/usr/lib/python2.7/site-packages/ansible/module_utils/common/json.pyR'Bs	(t__name__t
__module__t__doc__RRR%R'(((sD/usr/lib/python2.7/site-packages/ansible/module_utils/common/json.pyR"s	(t
__future__RRRttypet
__metaclass__tjsonR"tansible.module_utils._textRt/ansible.module_utils.common._collections_compatRt'ansible.module_utils.common.collectionsRR
tJSONEncoderR(((sD/usr/lib/python2.7/site-packages/ansible/module_utils/common/json.pyt<module>s	

Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]