
    Kwgb                         d Z dZ G d d      Zedk(  r+ edd      Zej                         Z ee        ee       yy)	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y)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                   j                  |       y )N)__dict__update)selfattrs     I/var/www/horilla/myenv/lib/python3.12/site-packages/reportlab/lib/abag.py__init__zABag.__init__   s    T"    c                 x     | j                   di | j                  }|r|j                  j                  |       |S )N )	__class__r   r   )r   r   ns      r	   clonez
ABag.clone   s2    DNN+T]]+""4(r   c                     | j                   }t        |j                               }|j                          | j                  j
                  ddj                  |D cg c]  }|d||    c}      dS c c}w )N(z, =))r   listkeyssortr   __name__join)r   DKks       r	   __repr__zABag.__repr__   sZ    MMN	>>22499Z[=\UV1Q4>P=\3]^^=\s   A7N)r   
__module____qualname____doc__r
   r   r   r   r   r	   r   r      s    
#
_r   r   __main__   hello)acN)__version__r    r   r   ABr   CDprintr   r   r	   <module>r*      sQ    P_ _4 Z	W	B	B	"I	"I	 r   