summaryrefslogtreecommitdiffstats
path: root/lps_gen.py
diff options
context:
space:
mode:
authorrsiddharth <rsd@gnu.org>2016-03-18 23:12:09 -0400
committerrsiddharth <rsd@gnu.org>2016-03-18 23:12:09 -0400
commit6126b5871114b612ecb12f5471582853507ab12b (patch)
tree28e06eee84564f825717952a55bbffc2c306a4d3 /lps_gen.py
parent29a3dbcc8208d3b9907d88b2c5b34fbb0f935717 (diff)
Update LPiCal.__init__ method.
- Arg lp_year is stringified before getting copied to self.lp_year. Addresses issue #8.
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 352d0b6..490efd5 100644
--- a/lps_gen.py
+++ b/lps_gen.py
@@ -115,7 +115,7 @@ class LPiCal(object):
def __init__(self, lps_dict, lp_year):
self.lps_dict = lps_dict
- self.lp_year = lp_year
+ self.lp_year = str(lp_year)
# Matches strings like '09:45 - 10:30: Lorem ipsum dolor sit.'
self.timeslot_re = re.compile(r'(\d+:\d+).+?(\d+:\d+):\s*(.+\b)')