Skip to content

Commit

Permalink
Now that Calendar.holidays returns a date instance, holidays_set is s…
Browse files Browse the repository at this point in the history
…traightforward.
  • Loading branch information
jaraco committed May 10, 2014
1 parent 06662e4 commit 8007d28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion workalendar/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def get_observed_date(self, holiday):

def holidays_set(self, year=None):
"Return a quick date index (set)"
return set([day for day, label in self.holidays(year)])
return set(self.holidays(year))

def get_weekend_days(self):
"""Return a list (or a tuple) of weekdays that are *not* working days.
Expand Down

0 comments on commit 8007d28

Please sign in to comment.