o
    ¬+ Ze  ã                   @   sJ   d Z dZG dd„ dƒZedkr#eddd�Ze ¡ Zeeƒ eeƒ dS 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   úD/var/www/html/env/lib/python3.10/site-packages/reportlab/lib/abag.pyÚ__init__   s   zABag.__init__c                 K   s&   | j di | j¤Ž}|r|j |¡ |S )Nr   )Ú	__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>   s    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__é   Úhello)ÚaÚcN)Ú__version__r   r   r   ÚABr   ÚCDÚprintr   r   r   r   Ú<module>   s   ü