From aebe8da78dc6cdf898fe5eee5540f0094f870ac8 Mon Sep 17 00:00:00 2001 From: Gordon Inggs Date: Tue, 8 Jan 2019 02:22:31 +0200 Subject: [PATCH] Rather using Monday const from built-in calendar.py (#791) Latest version of holidays (0.9.9) changed the name of its MONDAY const to MON. Rather using the MONDAY const from the same library as the object that it is being used with. --- python/fbprophet/hdays.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/fbprophet/hdays.py b/python/fbprophet/hdays.py index 11ae456..047d091 100644 --- a/python/fbprophet/hdays.py +++ b/python/fbprophet/hdays.py @@ -9,11 +9,11 @@ from __future__ import absolute_import, division, print_function import warnings -from calendar import Calendar +from calendar import Calendar, MONDAY from datetime import date, timedelta from convertdate.islamic import from_gregorian, to_gregorian -from holidays import MONDAY, WEEKEND, HolidayBase, easter, rd +from holidays import WEEKEND, HolidayBase, easter, rd from lunardate import LunarDate