AlkantarClanX12

Your IP : 18.118.227.199


Current Path : /opt/alt/python35/lib64/python3.5/idlelib/__pycache__/
Upload File :
Current File : //opt/alt/python35/lib64/python3.5/idlelib/__pycache__/Delegator.cpython-35.opt-1.pyc



��Yf�@sCGdd�d�Zedkr?ddlmZeddd�dS)	c@sCeZdZddd�Zdd�Zdd�Zdd	�ZdS)
�	DelegatorNcCs||_t�|_dS)N)�delegate�set�_Delegator__cache)�selfr�r�6/opt/alt/python35/lib64/python3.5/idlelib/Delegator.py�__init__s	zDelegator.__init__cCs6t|j|�}t|||�|jj|�|S)N)�getattrr�setattrr�add)r�name�attrrrr�__getattr__	szDelegator.__getattr__cCsKx7|jD],}yt||�Wq
tk
r5Yq
Xq
W|jj�dS)z;Removes added attributes while leaving original attributes.N)r�delattr�AttributeError�clear)r�keyrrr�
resetcaches
	zDelegator.resetcachecCs|j�||_dS)z%Reset attributes and change delegate.N)rr)rrrrr�setdelegates
zDelegator.setdelegate)�__name__�
__module__�__qualname__rrrrrrrrrsr�__main__�)�mainz idlelib.idle_test.test_delegator�	verbosity�N)rrZunittestrrrrr�<module>s