lpschedule-generator

libreplanet schedule generator - ricketyspace.net/lpschedule-generator
git clone git://git.ricketyspace.net/lpschedule-generator.git
Log | Files | Refs

commit eb7732b5ef9e54c007eee2adf4ba57c7db857b20
parent 7b75bf324ccb583c9df04cbfd0b43b9942dc36eb
Author: rsiddharth <rsd@gnu.org>
Date:   Sun, 22 Oct 2017 02:05:01 +0000

lps_gen: Use items() instead iteritems() on dicts.

* lps_gen.py (LPiCal.gen_ical): Update method.

Diffstat:
lps_gen.py | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lps_gen.py b/lps_gen.py @@ -262,19 +262,19 @@ class LPiCal(object): """Parse LP schedule dict and generate iCal Calendar object. """ - for day_str, timeslots in self.lps_dict.iteritems(): + for day_str, timeslots in self.lps_dict.items(): month, day = self.get_month_day(day_str) if not month: # month, day not specified; cannot generate ical for # this day continue - for timeslot_str, sessions in timeslots.iteritems(): + for timeslot_str, sessions in timeslots.items(): t_start, t_end, t_name = self.get_timeslot(timeslot_str) if not t_start: # timeslot not specified; cannot generate ical for # this timeslot continue - for session, session_info in sessions.iteritems(): + for session, session_info in sessions.items(): self.add_event(month, day, t_start, t_end, t_name, session, session_info)