@@ -0,0 +1,2298 @@
+# -*- coding: utf-8 -*-%0A%0A#  python-holidays%0A#  ---------------%0A#  A fast, efficient Python library for generating country, province and state%0A#  specific sets of holidays on the fly. It aims to make determining whether a%0A#  specific date is a holiday as fast and flexible as possible.%0A#%0A#  Author:  ryanss %3Cryanssdev@icloud.com%3E (c) 2014-2017%0A#           dr-prodigy %3Cmaurizio.montel@gmail.com%3E (c) 2017-2020%0A#  Website: https://github.com/dr-prodigy/python-holidays%0A#  License: MIT (see LICENSE file)%0A%0Afrom datetime import date%0A%0Afrom dateutil.easter import easter%0Afrom dateutil.relativedelta import relativedelta as rd, TU%0A%0Afrom holidays.constants import JAN, FEB, MAR, APR, MAY, JUN, JUL, AUG, SEP, OCT, %5C%0A    NOV, DEC%0Afrom holidays.constants import WEEKEND, TUE,  THU%0A%0A%0Afrom holidays.holiday_base import HolidayBase%0A%0A%0Aclass Angola(HolidayBase):%0A    %22%22%22%0A    Official Holidays in Angola in their current form%0A    Source1: https://en.wikipedia.org/wiki/Public_holidays_in_Angola%0A    Source2: http://www.siac.gv.ao/downloads/181029-Lei-Feriados.pdf%0A    %22%22%22%0A%0A%0A%0A    def __init__(self, **kwargs):%0A        self.country = 'AO'%0A        HolidayBase.__init__(self, **kwargs)%0A%0A    def _long_weekends(self, description, full_date):%0A        %22%22%22%0A        According to the most recently low in Angola:%0A        If the holidays happens to be on a Tuesday, the Monday before that is a holiday as well,%0A        If it happens to be on a Thursday, the Friday before it is a Holiday as well%0A        %22%22%22%0A%0A        if date(*full_date).weekday() in WEEKEND:%0A            pass%0A        elif date(*full_date).weekday() == TUE:%0A            self%5Bdate(*full_date)%5D = description%0A            self%5Bdate(*full_date) - rd(days=1)%5D = description + %22 (Ponte antes do feriado)%22%0A%0A        elif date(*full_date).weekday() == THU:%0A            self%5Bdate(*full_date)%5D = description%0A            self%5Bdate(*full_date) + rd(days=1)%5D = description + %22 (Ponte depois do feriado)%22%0A        else:%0A            self%5Bdate(*full_date)%5D = description%0A%0A%0A%0A%0A%0A    def _populate(self, year):%0A    %0A%0A        self%5Beaster(year) - rd(days=2)%5D = %22Sexta-feira Santa%22%0A        self%5Beaster(year)%5D = %22P%C3%A1scoa%22%0A        quaresma = easter(year) - rd(days=46)%0A        self%5Bquaresma - rd(weekday=TU(-1))%5D = %22Carnaval%22%0A%0A%0A%0A%0A%0Aclass AO(Angola):%0A    pass%0A%0A%0Aclass AGO(Angola):%0A    pass%0A

Add Angola Holidays