summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrsiddharth <rsd@gnu.org>2020-07-10 18:52:18 -0400
committerrsiddharth <rsd@gnu.org>2020-07-10 18:52:18 -0400
commit4455061a5bc13a05b51786d31f9ae470ec30bdc7 (patch)
tree13319736b6f8a602625367f69282df898a28702a
parentddccb4ca0b5a914f08abb56381fa715854c6585b (diff)
lps_gen.py: Update LPiCal.__init__
* lps_gen.py (LPiCal.__init__): Merge the two timeslot_re regex strings into one.
-rw-r--r--lps_gen.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lps_gen.py b/lps_gen.py
index de2c5c2..320bd53 100644
--- a/lps_gen.py
+++ b/lps_gen.py
@@ -116,7 +116,7 @@ class LPiCal(object):
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+)" r"\s*[:-]?\s*(.+\b)?")
+ self.timeslot_re = re.compile(r"(\d+:\d+).+?(\d+:\d+)\s*[:-]?\s*(.+\b)?")
# Matches strings like 'Saturday, March 19'
self.month_day_re = re.compile(r"\w+,\s*([a-zA-Z]+)\s*(\d+)")