From 914dca1685df9ce036f820fd6c2bf4fe75b6344b 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