summaryrefslogtreecommitdiffstats
path: root/lps_gen.py
diff options
context:
space:
mode:
authorrsiddharth <rsd@gnu.org>2019-05-26 09:45:56 -0400
committerrsiddharth <rsd@gnu.org>2019-05-26 09:45:56 -0400
commit8bb24f30c0aba9b72567dd000fff6004b67abe43 (patch)
tree3bb801a50903fcece966f73aab344234afd3d855 /lps_gen.py
parent9f909aea468313e74716c5de37fd7cbd00de96fa (diff)
lps_gen.py: Update LPiCal.
* lps_gen.py (LPiCal.__init__): Use format function for formatted string. * tests/test_lps_gen.py (TestLPiCal.test_init): New 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 6c3d99e..25aae72 100644
--- a/lps_gen.py
+++ b/lps_gen.py
@@ -109,7 +109,7 @@ class LPiCal(object):
self.cal = Calendar()
self.cal.add('prodid', '-//lpschedule generator//mxm.dk//')
self.cal.add('version', '2.0')
- self.cal.add('x-wr-calname', 'LibrePlanet %s' % self.lp_year)
+ self.cal.add('x-wr-calname', 'LibrePlanet {}'.format(self.lp_year))
# RFC 2445 requires DTSTAMP to be in UTC. DTSTAMP is used in
# VEVENT (Event object, see `add_event` method).