
    d                     V     G d  d          Z edk    rddlmZ  edd           dS dS )	c                   (    e Zd ZddZd Zd Zd ZdS )	DelegatorNc                 :    || _         t                      | _        d S N)delegateset_Delegator__cacheselfr   s     #  /croot/python-split_1694437901252/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_plac/lib/python3.11/idlelib/delegator.py__init__zDelegator.__init__   s     uu    c                     t          | j        |          }t          | ||           | j                            |           |S r   )getattrr   setattrr   add)r
   nameattrs      r   __getattr__zDelegator.__getattr__	   s@    t}d++dD!!!r   c                     | j         D ]#}	 t          | |           # t          $ r Y  w xY w| j                                          dS )z;Removes added attributes while leaving original attributes.N)r   delattrAttributeErrorclear)r
   keys     r   
resetcachezDelegator.resetcache   sg     < 	 	Cc""""!   s   
))c                 <    |                                   || _        dS )z%Reset attributes and change delegate.N)r   r   r	   s     r   setdelegatezDelegator.setdelegate   s     r   r   )__name__
__module____qualname__r   r   r   r    r   r   r   r      sU             	 	 	! ! ! ! !r   r   __main__    )mainz idlelib.idle_test.test_delegator   )	verbosityN)r   r   unittestr#   r    r   r   <module>r'      sp   ! ! ! ! ! ! ! !< zD	+q999999 r   