Skip to content

Commit 721194c

Browse files
author
David Hirschfeld
committed
Moved caching in AbstractHolidayCalendar to the instance level
Closes #9552
1 parent 1d94dd2 commit 721194c

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

pandas/tseries/holiday.py

+1-9
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ class AbstractHolidayCalendar(object):
276276
rules = []
277277
start_date = Timestamp(datetime(1970, 1, 1))
278278
end_date = Timestamp(datetime(2030, 12, 31))
279-
_holiday_cache = None
279+
_cache = None
280280

281281
def __init__(self, name=None, rules=None):
282282
"""
@@ -348,14 +348,6 @@ def holidays(self, start=None, end=None, return_name=False):
348348
else:
349349
return holidays.index
350350

351-
@property
352-
def _cache(self):
353-
return self.__class__._holiday_cache
354-
355-
@_cache.setter
356-
def _cache(self, values):
357-
self.__class__._holiday_cache = values
358-
359351
@staticmethod
360352
def merge_class(base, other):
361353
"""

0 commit comments

Comments
 (0)