a
    ¥Q•hb  ã                   @   sF   d Z dZG dd„ dƒZedkrBeddd�Ze ¡ Zeeƒ eeƒ dS )	z3.3.0zBData structure to hold a collection of attributes, used by styles.c                   @   s(   e Zd ZdZdd„ Zdd„ Zdd„ ZdS )	ÚABagaS  
    'Attribute Bag' - a trivial BAG class for holding attributes.

    This predates modern Python.  Doing this again, we'd use a subclass
    of dict.

    You may initialize with keyword arguments.
    a = ABag(k0=v0,....,kx=vx,....) ==> getattr(a,'kx')==vx

    c = a.clone(ak0=av0,.....) copy with optional additional attributes.
    c                 K   s   | j  |¡ d S ©N)Ú__dict__Úupdate)ÚselfÚattr© r   úK/var/www/sistema_ama/venv/lib/python3.9/site-packages/reportlab/lib/abag.pyÚ__init__   s    zABag.__init__c                 K   s&   | j f i | j¤Ž}|r"|j |¡ |S r   )Ú	__class__r   r   )r   r   Únr   r   r   Úclone   s    z
ABag.clonec                    s>   | j ‰ tˆ  ¡ ƒ}| ¡  d| jjd ‡ fdd„|D ƒ¡f S )Nz%s(%s)z, c                    s   g | ]}d |ˆ | f ‘qS )z%s=%rr   )Ú.0Úk©ÚDr   r   Ú
<listcomp>   ó    z!ABag.__repr__.<locals>.<listcomp>)r   ÚlistÚkeysÚsortr
   Ú__name__Újoin)r   ÚKr   r   r   Ú__repr__   s    zABag.__repr__N)r   Ú
__module__Ú__qualname__Ú__doc__r	   r   r   r   r   r   r   r      s   r   Ú__main__é   Zhello)ÚaÚcN)Ú__version__r   r   r   ZABr   ZCDÚprintr   r   r   r   Ú<module>   s   