def add_years(self, d, years):
        if years == 0:
            return d
        try:
            return d.replace(year = d.year + years)
        except __HOLE__:
            return d.replace(day = 28).replace(year = d.year + years)
dataset/ETHPy150Open duydao/Text-Pastry/text_pastry.py/TextPastryDateRangeCommand.add_years