From ee482a333f680c1277509403ae6dc9a12280b0ee Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Sun, 26 May 2019 14:30:58 -0400 Subject: Update LPiCal.to_ical. * lps_gen.py (LPiCal.to_ical): Use format for formatted string. * tests/test_lps_gen.py (TestLPiCal.test_to_ical): Update test. --- lps_gen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lps_gen.py') diff --git a/lps_gen.py b/lps_gen.py index 6c2bf8e..bd410c1 100644 --- a/lps_gen.py +++ b/lps_gen.py @@ -267,7 +267,7 @@ class LPiCal(object): def to_ical(self): """Writes iCal to disk. """ - filename = 'lp%s-schedule.ics' % self.lp_year + filename = 'lp{}-schedule.ics'.format(self.lp_year) write_file(filename, self.gen_ical()) return filename -- cgit v1.2.3