zfc@sbdZdd dYZdefdYZddlZejjedd dYZdS( sGA more or less complete user-defined wrapper around dictionary objects.tUserDictcBseZdZdZdZdZdZdZdZ dZ dZ dZ d Z d Zd Zd Zd ZdZdZdZddZddZdZdZdZeddZRS(cOs|stdn|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 %dtdictis0Passing 'dict' as keyword argument is deprecatedt stackleveli( t TypeErrortlentpoptwarningstwarntPendingDeprecationWarningtNonetdatatupdate(targstkwargstselfRR((s /usr/lib64/python2.7/UserDict.pyt__init__s(          cCs t|jS(N(treprR (R((s /usr/lib64/python2.7/UserDict.pyt__repr__tcCs6t|tr"t|j|jSt|j|SdS(N(t isinstanceRtcmpR (RR((s /usr/lib64/python2.7/UserDict.pyt__cmp__scCs t|jS(N(RR (R((s /usr/lib64/python2.7/UserDict.pyt__len__"RcCsO||jkr|j|St|jdr?|jj||St|dS(Nt __missing__(R thasattrt __class__RtKeyError(Rtkey((s /usr/lib64/python2.7/UserDict.pyt __getitem__#s  cCs||j|RcOsc|stdn|d}|d}t|dkrTtdt|n|rg|d}nFd|kr|jd}ddl}|jdtdd nd}|dkrnt|tr|j j |j n_t|t ist |d  r|j j |n'x$|j D]\}}|||RR%R(RRF((s /usr/lib64/python2.7/UserDict.pyRs  cCst|jS(N(RR#(R((s /usr/lib64/python2.7/UserDict.pyRsN(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