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.pyc

�
MHYc@s3dZddlmZdeefd��YZdS(ssDrop-in replacement for collections.OrderedDict by Raymond Hettinger

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

i����(t	DictMixintOrderedDictcBs�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(RtNonet_OrderedDict__maptdictR(Rtend((s=/usr/lib64/python2.7/site-packages/simplejson/ordered_dict.pyRs
	cCs_||krH|j}|d}|||g|d<|d<|j|<ntj|||�dS(Nii(RR
Rt__setitem__(RtkeytvalueRtcurr((s=/usr/lib64/python2.7/site-packages/simplejson/ordered_dict.pyRs
	
)cCsCtj||�|jj|�\}}}||d<||d<dS(Nii(Rt__delitem__R
tpop(RRtprevtnext((s=/usr/lib64/python2.7/site-packages/simplejson/ordered_dict.pyR s
ccs=|j}|d}x#||k	r8|dV|d}qWdS(Nii(R(RRR((s=/usr/lib64/python2.7/site-packages/simplejson/ordered_dict.pyt__iter__&s
	
	ccs=|j}|d}x#||k	r8|dV|d}qWdS(Nii(R(RRR((s=/usr/lib64/python2.7/site-packages/simplejson/ordered_dict.pyt__reversed__-s
	
	cCsX|std��n|r-t|�j�nt|�j�}|j|�}||fS(Nsdictionary is empty(tKeyErrortreversedRtiterR(RtlastRR((s=/usr/lib64/python2.7/site-packages/simplejson/ordered_dict.pytpopitem4s
*cCs�g|D]}|||g^q}|j|jf}|`|`t|�j�}|\|_|_|r~|j|f|fS|j|ffS(N(R
Rtvarstcopyt	__class__(Rtktitemsttmpt	inst_dict((s=/usr/lib64/python2.7/site-packages/simplejson/ordered_dict.pyt
__reduce__;s#cCs
t|�S(N(tlist(R((s=/usr/lib64/python2.7/site-packages/simplejson/ordered_dict.pytkeysEscCs1|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__QscCs
|j|�S(N(R!(R((s=/usr/lib64/python2.7/site-packages/simplejson/ordered_dict.pyR VscCs(|�}x|D]}|||<qW|S(N((tclstiterableRtdR((s=/usr/lib64/python2.7/site-packages/simplejson/ordered_dict.pytfromkeysYs	
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>cs(t
isinstanceRRtalltzipR#Rt__eq__(Rtother((s=/usr/lib64/python2.7/site-packages/simplejson/ordered_dict.pyR5`s)cCs||kS(N((RR6((s=/usr/lib64/python2.7/site-packages/simplejson/ordered_dict.pyt__ne__fsN(R)t
__module__RRRRRRtTrueRR&R(Rt
setdefaultRRtvaluesR#titerkeyst
itervaluest	iteritemsR*R tclassmethodRR.R5R7(((s=/usr/lib64/python2.7/site-packages/simplejson/ordered_dict.pyRs.								
												N(t__doc__tUserDictRRR(((s=/usr/lib64/python2.7/site-packages/simplejson/ordered_dict.pyt<module>s

Zerion Mini Shell 1.0