ok

Mini Shell

Direktori : /proc/self/root/usr/lib64/python2.7/site-packages/simplejson/
Upload File :
Current File : //proc/self/root/usr/lib64/python2.7/site-packages/simplejson/ordered_dict.pyo

�
���Sc@sXdZddlmZyeWnek
r:d�ZnXdeefd��YZdS(ssDrop-in replacement for collections.OrderedDict by Raymond Hettinger

http://code.activestate.com/recipes/576693/

i����(t	DictMixincCsx|D]}|stSqWtS(N(tFalsetTrue(tseqtelem((s=/usr/lib64/python2.7/site-packages/simplejson/ordered_dict.pytall
s
tOrderedDictcBs�eZd�Zd�Zd�Zd�Zd�Zd�Zed�Z	d�Z
d�Zej
Z
ejZejZejZejZejZejZejZd	�Zd
�Zedd��Zd�Zd
�ZRS(cOsht|�dkr+tdt|���ny|jWntk
rS|j�nX|j||�dS(Nis$expected at most 1 arguments, got %d(tlent	TypeErrort_OrderedDict__endtAttributeErrortcleartupdate(tselftargstkwds((s=/usr/lib64/python2.7/site-packages/simplejson/ordered_dict.pyt__init__s
cCs:g|_}|d||g7}i|_tj|�dS(N(R	tNonet_OrderedDict__maptdictR(R
tend((s=/usr/lib64/python2.7/site-packages/simplejson/ordered_dict.pyRs
	cCs_||krH|j}|d}|||g|d<|d<|j|<ntj|||�dS(Nii(R	RRt__setitem__(R
tkeytvalueRtcurr((s=/usr/lib64/python2.7/site-packages/simplejson/ordered_dict.pyR$s
	
)cCsCtj||�|jj|�\}}}||d<||d<dS(Nii(Rt__delitem__Rtpop(R
Rtprevtnext((s=/usr/lib64/python2.7/site-packages/simplejson/ordered_dict.pyR+s
ccs=|j}|d}x#||k	r8|dV|d}qWdS(Nii(R	(R
RR((s=/usr/lib64/python2.7/site-packages/simplejson/ordered_dict.pyt__iter__1s
	
	ccs=|j}|d}x#||k	r8|dV|d}qWdS(Nii(R	(R
RR((s=/usr/lib64/python2.7/site-packages/simplejson/ordered_dict.pyt__reversed__8s
	
	cCs[|std��n|r0t|�j�}nt|�j�}|j|�}||fS(Nsdictionary is empty(tKeyErrortreversedRtiterR(R
tlastRR((s=/usr/lib64/python2.7/site-packages/simplejson/ordered_dict.pytpopitem?scCs�g|D]}|||g^q}|j|jf}|`|`t|�j�}|\|_|_|r~|j|f|fS|j|ffS(N(RR	tvarstcopyt	__class__(R
tktitemsttmpt	inst_dict((s=/usr/lib64/python2.7/site-packages/simplejson/ordered_dict.pyt
__reduce__Ks#cCs
t|�S(N(tlist(R
((s=/usr/lib64/python2.7/site-packages/simplejson/ordered_dict.pytkeysUscCs1|sd|jjfSd|jj|j�fS(Ns%s()s%s(%r)(R&t__name__R((R
((s=/usr/lib64/python2.7/site-packages/simplejson/ordered_dict.pyt__repr__ascCs
|j|�S(N(R&(R
((s=/usr/lib64/python2.7/site-packages/simplejson/ordered_dict.pyR%fscCs(|�}x|D]}|||<qW|S(N((tclstiterableRtdR((s=/usr/lib64/python2.7/site-packages/simplejson/ordered_dict.pytfromkeysis	
cCs`t|t�rPt|�t|�koOtd�t|j�|j��D��Stj||�S(Ncss!|]\}}||kVqdS(N((t.0tptq((s=/usr/lib64/python2.7/site-packages/simplejson/ordered_dict.pys	<genexpr>ss(t
isinstanceRRRtzipR(Rt__eq__(R
tother((s=/usr/lib64/python2.7/site-packages/simplejson/ordered_dict.pyR9ps)cCs||kS(N((R
R:((s=/usr/lib64/python2.7/site-packages/simplejson/ordered_dict.pyt__ne__vsN(R.t
__module__RRRRRRRR#R+R-Rt
setdefaultRRtvaluesR(titerkeyst
itervaluest	iteritemsR/R%tclassmethodRR3R9R;(((s=/usr/lib64/python2.7/site-packages/simplejson/ordered_dict.pyRs.								
												N(t__doc__tUserDictRRt	NameErrorRR(((s=/usr/lib64/python2.7/site-packages/simplejson/ordered_dict.pyt<module>s



Zerion Mini Shell 1.0