ok
Direktori : /usr/lib64/python2.7/site-packages/simplejson/ |
Current File : //usr/lib64/python2.7/site-packages/simplejson/ordered_dict.pyo |
� ���Sc @ sX d Z d d l m Z y e Wn e k r: d � Z n Xd 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 DictMixinc C s x | D] } | s t Sq Wt S( N( t Falset True( t seqt elem( ( s= /usr/lib64/python2.7/site-packages/simplejson/ordered_dict.pyt all s t 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__1 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 __reversed__8 s c C s[ | s t d � � n | r0 t | � j � } n t | � j � } | j | � } | | f S( Ns dictionary is empty( t KeyErrort reversedR t iterR ( R t lastR R ( ( s= /usr/lib64/python2.7/site-packages/simplejson/ordered_dict.pyt popitem? s c C s� g | D] } | | | g ^ q } | j | j f } | ` | ` t | � j � } | \ | _ | _ | r~ | j | f | f S| j | f f S( N( R R t varst copyt __class__( R t kt itemst tmpt inst_dict( ( s= /usr/lib64/python2.7/site-packages/simplejson/ordered_dict.pyt __reduce__K s #c C s t | � S( N( t list( R ( ( s= /usr/lib64/python2.7/site-packages/simplejson/ordered_dict.pyt keysU s c C s1 | s d | j j f Sd | j j | j � f S( Ns %s()s %s(%r)( R&