Anons79 Mini Shell

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

�
�Udac@s1d�Zd�Zd�Zd�Zd�ZdS(cCs�d}xvt|�D]h\}}|dkr<||d}n|dkr|dkr|rr||krxd}qxq{|}qqW|S(s�
    the goal of this block is to determine if the quoted string
    is unterminated in which case it needs to be put back together
    iis"'s\N(tNonet	enumerate(ttokent
quote_chart	prev_chartidxtcur_char((sA/usr/lib/python2.7/site-packages/ansible/module_utils/splitter.pyt_get_quote_states
cCsT|j|�}|j|�}||krP|||7}|dkrPd}qPn|S(s�
    this function counts the number of opening/closing blocks for a
    given opening/closing type and adjusts the current depth for that
    block based on the difference
    i(tcount(Rt	cur_deptht
open_tokentclose_tokentnum_opent	num_close((sA/usr/lib/python2.7/site-packages/ansible/module_utils/splitter.pyt_count_jinja2_blocks2scCs�g}|j�}y|jd�}t}Wntk
rDt}nX|jd�}d}t}d}d}d}xt|�D]\}	}
|
j�jd�}t}x|t|�D]n\}
}|dkr�|r�t}q�n|}t||�}|dk	}t}|r(|r(|j	|�t}n�|sF|sF|sF|sF|r|
dkrz|rz|rzd|d|f|d<n�t
|�dkr�d	}|
dkr�d}nd
|d||f|d<nJd	}|djd�r�|
dkr�d}nd
|d||f|d<t}n|}t||dd�}||kr\|r\|j	|�t}n|}t||d
d�}||kr�|r�|j	|�t}n|}t||dd�}||kr�|r�|j	|�t}n|p�|p�|r�|r�|r�|d	kr�|j	|�q�q�Wt
|�dkr�|	t
|�dkr�|r�|djd�st|
d	kr�|dcd7<q�nt}qW|s�|s�|s�|r�t
d��n|r�g|D]}|jd�^q�}n|S(s
    Splits args on whitespace, but intelligently reassembles
    those that may have been split over a jinja2 block or quotes.

    When used in a remote module, we won't ever have to be concerned about
    jinja2 blocks, however this function is/will be used in the
    core portions as well before the args are templated.

    example input: a=b c="foo bar"
    example output: ['a=b', 'c="foo bar"']

    Basically this is a variation shlex that has some more intelligence for
    how Ansible needs to use it.
    sutf-8s
it s\s%s%si����its%s%s%ss{{s}}s{%s%}s{#s#}sLerror while splitting arguments, either an unbalanced jinja2 block or quotesN(tstriptencodetTruetUnicodeDecodeErrortFalsetsplitRRRtappendtlentendswithRt	Exceptiontdecode(targstparamst	do_decodetitemsRt
inside_quotestprint_depthtblock_deptht
comment_depthtitemidxtitemttokenstline_continuationRRtwas_inside_quotestappendedtspacertprev_print_depthtprev_block_depthtprev_comment_depthtx((sA/usr/lib/python2.7/site-packages/ansible/module_utils/splitter.pyt
split_argsAs�





		 		
	
	
	-/ 
%cCsPt|�dkoO|ddkr2|ddkpO|ddkoO|ddkS(Nit"i����t'(R(tdata((sA/usr/lib/python2.7/site-packages/ansible/module_utils/splitter.pyt	is_quoted�scCst|�r|dd!S|S(sa removes first and last quotes from a string, if the string starts and ends with the same quotes ii����(R3(R2((sA/usr/lib/python2.7/site-packages/ansible/module_utils/splitter.pytunquote�sN(RRR/R3R4(((sA/usr/lib/python2.7/site-packages/ansible/module_utils/splitter.pyt<module>s			�	

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