
    kfb                         d Z dZ G d d          Zedk    r9 e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                   $    e Zd ZdZd Zd Z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                 :    | j                             |           d S )N)__dict__update)selfattrs     R/var/www/html/nettyfy-visnx/env/lib/python3.11/site-packages/reportlab/lib/abag.py__init__zABag.__init__   s    T"""""    c                 b     | j         di | j        }|r|j                            |           |S )N )	__class__r   r   )r   r   ns      r	   clonez
ABag.clone   s;    DN++T]++(""4(((r   c                     | j         t                                                    }|                                 | j        j        dd                    fd|D                       dS )N(z, c                 *    g | ]}|d |         S )=r   ).0kDs     r	   
<listcomp>z!ABag.__repr__.<locals>.<listcomp>   s)    =\=\=\UV1Q44>P=\=\=\r   ))r   listkeyssortr   __name__join)r   Kr   s     @r	   __repr__zABag.__repr__   sh    MNN	>222499=\=\=\=\Z[=\=\=\3]3]3]3]^^r   N)r   
__module____qualname____doc__r
   r   r    r   r   r	   r   r      sP        
 
# # #  
_ _ _ _ _r   r   __main__   hello)acN)__version__r#   r   r   ABr   CDprintr   r   r	   <module>r-      s    P_ _ _ _ _ _ _ _4 Z	W			B	B	E"III	E"IIIII	 r   