� zfc@sbdZdd d��YZdefd��YZddlZejje�dd d��YZdS( sGA more or less complete user-defined wrapper around dictionary objects.tUserDictcBs�eZd�Zd�Zd�ZdZd�Zd�Zd�Z d�Z d�Z d�Z d �Z d �Zd �Zd �Zd �Zd�Zd�Zd�Zdd�Zdd�Zd�Zd�Zd�Zedd��ZRS(cOs�|std��n|d}|d}t|�dkrTtdt|���n|rg|d}nFd|kr�|jd�}ddl}|jdtdd �nd}i|_|dk r�|j|�nt|�r�|j|�ndS( Ns<descriptor '__init__' of 'UserDict' object needs an argumentiis$expected at most 1 arguments, got %dtdicti����s0Passing 'dict' as keyword argument is deprecatedt stackleveli( t TypeErrortlentpoptwarningstwarntPendingDeprecationWarningtNonetdatatupdate(targstkwargstselfRR((s /usr/lib64/python2.7/UserDict.pyt__init__s(          cCs t|j�S(N(treprR (R((s /usr/lib64/python2.7/UserDict.pyt__repr__tcCs6t|t�r"t|j|j�St|j|�SdS(N(t isinstanceRtcmpR (RR((s /usr/lib64/python2.7/UserDict.pyt__cmp__scCs t|j�S(N(RR (R((s /usr/lib64/python2.7/UserDict.pyt__len__"RcCsO||jkr|j|St|jd�r?|jj||�St|��dS(Nt __missing__(R thasattrt __class__RtKeyError(Rtkey((s /usr/lib64/python2.7/UserDict.pyt __getitem__#s  cCs||j|RcOsc|std��n|d}|d}t|�dkrTtdt|���n|rg|d}nFd|kr�|jd�}ddl}|jdtdd �nd}|dkr�n�t|t�r�|j j |j �n_t|t i��st |d � r|j j |�n'x$|j �D]\}}|||RR%R(RRF((s /usr/lib64/python2.7/UserDict.pyR�s  cCst|j��S(N(RR#(R((s /usr/lib64/python2.7/UserDict.pyR�sN(R7R8R=R)R1R%R&R'R(R$R R R/RR0R R.RRR(((s /usr/lib64/python2.7/UserDict.pyR>xs"               (((t__doc__RR;t_abcolltMutableMappingtregisterR>(((s /usr/lib64/python2.7/UserDict.pyts m