
Qc           @   s:   d  d l  m Z d  d l m Z d e f d     YZ d S(   i(   t
   StringType(   t   UserDictt   UserDictCasec           B   s   e  Z d d   Z d   Z d   Z d   Z e Z d   Z d   Z	 d   Z
 d   Z d   Z d	   Z d
   Z d   Z d   Z d   Z d   Z RS(   c         C   s   i  |  _  t j |  |  d  S(   N(   t   kcaseR   t   __init__(   t   selft   data(    (    s4   /usr/lib/python2.7/site-packages/rhn/UserDictCase.pyR      s    	c         C   s!   t  | t  r | j   S| Sd S(   s.    Return the lower() of key if it is a string. N(   t
   isinstanceR    t   lower(   R   t   key(    (    s4   /usr/lib/python2.7/site-packages/rhn/UserDictCase.pyt   __lower_string   s    
c         C   s-   |  j  |  } | |  j | <| |  j | <d  S(   N(   t   _UserDictCase__lower_stringR   R   (   R   R	   t   valuet   lkey(    (    s4   /usr/lib/python2.7/site-packages/rhn/UserDictCase.pyt   __setitem__%   s    c         C   s0   |  j  |  } |  j j |  s% d  S|  j | S(   N(   R   R   t   has_keyt   None(   R   R	   (    (    s4   /usr/lib/python2.7/site-packages/rhn/UserDictCase.pyt   __getitem__*   s    c         C   s'   |  j  |  } |  j | =|  j | =d  S(   N(   R   R   R   (   R   R	   (    (    s4   /usr/lib/python2.7/site-packages/rhn/UserDictCase.pyt   __delitem__2   s    
c         C   s   |  j  j   S(   N(   R   t   values(   R   (    (    s4   /usr/lib/python2.7/site-packages/rhn/UserDictCase.pyt   keys7   s    c         C   s   |  j    j   S(   N(   t   get_hasht   items(   R   (    (    s4   /usr/lib/python2.7/site-packages/rhn/UserDictCase.pyR   :   s    c         C   s   |  j  |  } |  j j |  S(   N(   R   R   R   (   R   R	   (    (    s4   /usr/lib/python2.7/site-packages/rhn/UserDictCase.pyR   =   s    c         C   s   |  j  j   |  j j   d  S(   N(   R   t   clearR   (   R   (    (    s4   /usr/lib/python2.7/site-packages/rhn/UserDictCase.pyR   A   s    c         C   s"   t  |  j d  |  j j   i   S(   Nc         S   s*   | \ } } |  j  i | | | 6 p) |  S(   N(   t   update(   t   at   .1t   hct   ikt   v(    (    s4   /usr/lib/python2.7/site-packages/rhn/UserDictCase.pyt   <lambda>G   s    	(   t   reduceR   R   R   (   R   (    (    s4   /usr/lib/python2.7/site-packages/rhn/UserDictCase.pyR   F   s    c         C   s
   |  j    S(   N(   R   (   R   (    (    s4   /usr/lib/python2.7/site-packages/rhn/UserDictCase.pyt   __getstate__K   s    c         C   s   |  j  |  d  S(   N(   R   (   R   t   state(    (    s4   /usr/lib/python2.7/site-packages/rhn/UserDictCase.pyt   __setstate__O   s    c         C   s
   |  j    S(   N(   R   (   R   (    (    s4   /usr/lib/python2.7/site-packages/rhn/UserDictCase.pyt   dictS   s    c         C   s+   x$ | j    D] \ } } | |  | <q Wd  S(   N(   R   (   R   R#   t   kR   (    (    s4   /usr/lib/python2.7/site-packages/rhn/UserDictCase.pyR   V   s    c         C   s   t  |  j  S(   N(   t   iterR   (   R   (    (    s4   /usr/lib/python2.7/site-packages/rhn/UserDictCase.pyt   __iter__\   s    N(   t   __name__t
   __module__R   R   R   R   R   t   getR   R   R   R   R   R   R    R"   R#   R   R&   (    (    (    s4   /usr/lib/python2.7/site-packages/rhn/UserDictCase.pyR      s    													N(   t   typesR    R   R   (    (    (    s4   /usr/lib/python2.7/site-packages/rhn/UserDictCase.pyt   <module>   s   