ok
Direktori : /proc/self/root/lib64/python2.7/site-packages/simplejson/ |
Current File : //proc/self/root/lib64/python2.7/site-packages/simplejson/ordered_dict.pyc |
� MHYc @ s3 d Z d d l m Z d e e f d � � YZ d S( ss Drop-in replacement for collections.OrderedDict by Raymond Hettinger http://code.activestate.com/recipes/576693/ i����( t DictMixint OrderedDictc B s� e Z d � Z d � Z d � Z d � Z d � Z d � Z e d � Z d � Z d � Z e j Z e j Z e j Z e j Z e j Z e j Z e j Z e j Z d � Z d � Z e d d � � Z d � Z d � Z RS( c O sh t | � d k r+ t d t | � � � n y | j Wn t k rS | j � n X| j | | � d S( Ni s$ expected at most 1 arguments, got %d( t lent TypeErrort _OrderedDict__endt AttributeErrort cleart update( t selft argst kwds( ( s= /usr/lib64/python2.7/site-packages/simplejson/ordered_dict.pyt __init__ s c C s: g | _ } | d | | g 7} i | _ t j | � d S( N( R t Nonet _OrderedDict__mapt dictR ( R t end( ( s= /usr/lib64/python2.7/site-packages/simplejson/ordered_dict.pyR s c C s_ | | k rH | j } | d } | | | g | d <| d <| j | <n t j | | | � d S( Ni i ( R R R t __setitem__( R t keyt valueR t curr( ( s= /usr/lib64/python2.7/site-packages/simplejson/ordered_dict.pyR s )c C sC t j | | � | j j | � \ } } } | | d <| | d <d S( Ni i ( R t __delitem__R t pop( R R t prevt next( ( s= /usr/lib64/python2.7/site-packages/simplejson/ordered_dict.pyR s c c s= | j } | d } x# | | k r8 | d V| d } q Wd S( Ni i ( R ( R R R ( ( s= /usr/lib64/python2.7/site-packages/simplejson/ordered_dict.pyt __iter__&