o
    .j                     @   s8   d Z ddlZddlmZ d	dedejfddZdgZdS )
z#Functionality for smaller examples.    N)	CALENDARS namereturnc                 C   sh   |  ds	| d7 } t|  }z	tj| W S  ty3   td| dddd t	dD d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                 s   s    | ]}|j V  qd S )N)r   ).0p r   S/home/thesage/.local/lib/python3.10/site-packages/recurring_ical_events/examples.py	<genexpr>   s    z#example_calendar.<locals>.<genexpr>z*.ics.)
endswithr   	icalendarCalendar	from_ical
read_bytesFileNotFoundError
ValueErrorjoinglob)r   pathr   r   r	   example_calendar   s   
	r   )r   )__doc__r   recurring_ical_events.constantsr   strr   r   __all__r   r   r   r	   <module>   s
    
