a
    nax
                     @  sP   d Z ddlmZ ddlZeeZddlmZ ddl	m
Z
 dZdd	 Ze ZdS )
a   Calendar file of US Holidays from Mozilla provided by `icalendar`_.

Sourced from: https://www.mozilla.org/en-US/projects/calendar/holidays/

This module contains one list: ``us_holidays``.

.. rubric:: ``us_holidays``

.. code-block::

    [
        (datetime.date(1966, 12, 26), 'Kwanzaa'),
        (datetime.date(2000, 1, 1), "New Year's Day"),
        ...
        (datetime.date(2020, 12, 25), 'Christmas Day (US-OPM)')
    ]

.. _icalendar: https://pypi.org/project/icalendar/

    )annotationsN   )import_required)package_path)us_holidaysc                  C  s\   t dd} ttd }| j| }W d   n1 s<0    Y  tdd | D S )z

    Z	icalendarzVus_holidays data requires icalendar (http://icalendar.readthedocs.org) to be installedzUSHolidays.icsNc                 s  s2   | ]*}|j d kr|djt|dfV  qdS )ZVEVENTZdtstartZsummaryN)namegetZdtstr).0comp r   ;lib/python3.9/site-packages/bokeh/sampledata/us_holidays.py	<genexpr>I       z_read_data.<locals>.<genexpr>)r   openr   ZCalendarZ	from_icalreadsortedwalk)Zicfdatar   r   r   
_read_data@   s    
.r   )__doc__Z
__future__r   ZloggingZ	getLogger__name__logZutil.dependenciesr   Zutil.sampledatar   __all__r   r   r   r   r   r   <module>   s   
