
    i                    0    d Z ddlmZ ddlmZ dd	Zd
gZdS )z!Access to examples of components.    )annotations)Pathcomponent_directorystrexample_namereturnbytesc                   t          t                    j        j        }|dz  | z  }|                    d          s|dz   }||z  }|                                sGt          d| d|  dd                    d |                                D                                  t          |                                          S )z5Return an example and raise an error if it is absent.testsz.icszExample z for z not found. You can use one of z, c              3  $   K   | ]}|j         V  d S )N)name).0ps     Q/root/projects/butler/venv/lib/python3.11/site-packages/icalendar/cal/examples.py	<genexpr>zget_example.<locals>.<genexpr>   s$      +O+OqAF+O+O+O+O+O+O    )	r   __file__parentendswithis_file
ValueErrorjoiniterdir
read_bytes)r   r   hereexamplesexample_files        r   get_exampler      s    >> 'Dg~ 33H  (( -#f,l*L!! 
R| R R*= R R"&))+O+OH<L<L<N<N+O+O+O"O"OR R
 
 	
 ((***r   r   N)r   r   r   r   r   r	   )__doc__
__future__r   pathlibr   r   __all__ r   r   <module>r$      sP    ' ' " " " " " "      + + + + /r   