Commits

Mathias Panzenböck committed 5cb74d0

apparently Calendar.from_string is Calendar.from_ical now

Comments (0)

Files changed (1)

 			from icalendar import Calendar
 			for holidays in self.holidays:
 				if holidays.startswith("http:") or holidays.startswith("https:"):
-					cals = Calendar.from_string(self._http_get(holidays), True)
+					cals = Calendar.from_ical(self._http_get(holidays), True)
 				else:
 					with open(holidays) as f:
-						cals = Calendar.from_string(f.read(), True)
+						cals = Calendar.from_ical(f.read(), True)
 				for cal in cals:
 					for holiday in cal.subcomponents:
 						start = holiday['dtstart'].dt