U
    /ex
                     @  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  sH   t dd} ttd}| j| }W 5 Q R X tdd | D S )z

    Z	icalendarzVus_holidays data requires icalendar (http://icalendar.readthedocs.org) to be installedzUSHolidays.icsc                 s  s2   | ]*}|j d kr|djt|dfV  qdS )ZVEVENTZdtstartsummaryN)namegetdtstr).0comp r   @/tmp/pip-unpacked-wheel-f5fndrjf/bokeh/sampledata/us_holidays.py	<genexpr>I   s     
 z_read_data.<locals>.<genexpr>)r   openr   CalendarZ	from_icalreadsortedwalk)Zicfdatar   r   r   
_read_data@   s    
r   )__doc__
__future__r   logging	getLogger__name__logZutil.dependenciesr   Zutil.sampledatar   __all__r   r   r   r   r   r   <module>   s   
