summaryrefslogtreecommitdiffstats
path: root/lps_gen.py
diff options
context:
space:
mode:
authorrsiddharth <rsd@gnu.org>2019-05-26 14:30:58 -0400
committerrsiddharth <rsd@gnu.org>2019-05-26 14:30:58 -0400
commitee482a333f680c1277509403ae6dc9a12280b0ee (patch)
tree703332bb0a01e0495ab920892c3f754c7c202560 /lps_gen.py
parent13a80655eaac245e3418d66fb7e7247d6be6efab (diff)
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.
Diffstat (limited to 'lps_gen.py')
-rw-r--r--lps_gen.py2
1 files changed, 1 insertions, 1 deletions
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