diff options
author | rsiddharth <rsd@gnu.org> | 2016-03-18 23:12:09 -0400 |
---|---|---|
committer | rsiddharth <rsd@gnu.org> | 2016-03-18 23:12:09 -0400 |
commit | 6126b5871114b612ecb12f5471582853507ab12b (patch) | |
tree | 28e06eee84564f825717952a55bbffc2c306a4d3 /lps_gen.py | |
parent | 29a3dbcc8208d3b9907d88b2c5b34fbb0f935717 (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.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)') |