§
    Žpmaj  ã                   ó,   — d Z ddlZ G d„ d¦  «        ZdS )zŽ
Copyright (C) 2013-2014 Eygene A. Ryabinkin and contributors

Collection of classes that implement const-like behaviour
for various objects.
é    Nc                   ó0   — e Zd ZdZd„ Zd„ Zd„ Zd„ Zd„ ZdS )Ú
ConstProxyzbImplements read-only access to a given object
    that can be attached to each instance only once.c                 ó   — d | j         d<   d S )NÚ__source)Ú__dict__)Úselfs    ú2/usr/share/offlineimap3/offlineimap/utils/const.pyÚ__init__zConstProxy.__init__   s   € Ø$(ˆŒ�jÑ!Ð!Ð!ó    c                 ó‚   — | j         d         }|€t          d¦  «        ‚t          j        t	          ||¦  «        ¦  «        S )Nr   z)using non-initialized ConstProxy() object)r   Ú
ValueErrorÚcopyÚdeepcopyÚgetattr)r   ÚnameÚsrcs      r	   Ú__getattr__zConstProxy.__getattr__   s<   € ØŒm˜JÔ'ˆØˆ;ÝÐHÑIÔIÐIÝŒ}�W S¨$Ñ/Ô/Ñ0Ô0Ð0r   c                 ó.   — t          d|›d|›d�¦  «        ‚)Nztried to set 'z' to 'z' for constant object)ÚAttributeError)r   r   Úvalues      r	   Ú__setattr__zConstProxy.__setattr__   s(   € ÝˆnØ"˜d˜d E E Eð+ñ ,ô ,ð 	,r   c                 ó&   — t          d|z  ¦  «        ‚)Nz/tried to delete field '%s' from constant object)ÚRuntimeError)r   r   s     r	   Ú__delattr__zConstProxy.__delattr__   s   € ÝÐLØñ ñ !ô !ð 	!r   c                 óR   — | j         d         �t          d¦  «        ‚|| j         d<   dS )z' Sets source object for this instance. r   Nzsource object is already set)r   r   )r   Úsources     r	   Ú
set_sourcezConstProxy.set_source   s0   € àŒ=˜Ô$Ð0ÝÐ;Ñ<Ô<Ð<Ø$*ˆŒ�jÑ!Ð!Ð!r   N)	Ú__name__Ú
__module__Ú__qualname__Ú__doc__r
   r   r   r   r   © r   r	   r   r   
   si   € € € € € ð8ð 8ð)ð )ð )ð1ð 1ð 1ð,ð ,ð ,ð!ð !ð !ð+ð +ð +ð +ð +r   r   )r!   r   r   r"   r   r	   ú<module>r#      sL   ððð ð €€€ð+ð +ð +ð +ð +ñ +ô +ð +ð +ð +r   