From 265c02b0c182b4db9a5f1c5994e57a5ab2a3563d Mon Sep 17 00:00:00 2001 From: keang Date: Mon, 3 Oct 2016 08:27:37 +0800 Subject: [PATCH] MAINT: Restore @property decorator This will keep `opens`, `closes`, `early_closes`, etc to the same pattern. --- zipline/utils/calendars/trading_calendar.py | 1 + 1 file changed, 1 insertion(+) diff --git a/zipline/utils/calendars/trading_calendar.py b/zipline/utils/calendars/trading_calendar.py index 0197ece1..f17ec923 100644 --- a/zipline/utils/calendars/trading_calendar.py +++ b/zipline/utils/calendars/trading_calendar.py @@ -237,6 +237,7 @@ class TradingCalendar(with_metaclass(ABCMeta)): # ----- + @property def opens(self): return self.schedule.market_open