
    i                     @    d Z ddlZddlmZ d	dedej        fdZdgZdS )
z#Functionality for smaller examples.    N)	CALENDARS namereturnc                 T   |                      d          s| dz  } t          | z  }	 t          j                            |                                          S # t          $ rF t          d| dd                    d t          j	        d          D                       d          w xY w)zReturn an example calendar.

    Args:
        name (str): The name of the example file.

    Returns:
        icalendar.cal.Calendar: The parsed calendar example.
    z.icszFile z not found. Use one of z, c              3   $   K   | ]}|j         V  d S )N)r   ).0ps     Y/root/projects/butler/venv/lib/python3.11/site-packages/recurring_ical_events/examples.py	<genexpr>z#example_calendar.<locals>.<genexpr>   s$      #L#LqAF#L#L#L#L#L#L    z*.ics.)
endswithr   	icalendarCalendar	from_ical
read_bytesFileNotFoundError
ValueErrorjoinglob)r   paths     r   example_calendarr      s     ==   tD
!++DOO,=,=>>> 
 
 
RD R R))#L#LIN74K4K#L#L#LLLR R R
 
 	

s   0A AB'r   )r   )__doc__r   recurring_ical_events.constantsr   strr   r   __all__ r   r   <module>r      sa    ) )     5 5 5 5 5 5
 
3 
	(: 
 
 
 
* 
r   