summaryrefslogtreecommitdiff
path: root/coverage/codeunit.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2014-03-08 06:30:47 -0500
committerNed Batchelder <ned@nedbatchelder.com>2014-03-08 06:30:47 -0500
commit00af049c37837925412dff79dede4055db291f3c (patch)
tree60e98e7d8a7a5b088cdd6ff9059064b839740d87 /coverage/codeunit.py
parent8cc4ffa19dd13d8433878aab3458f6c7572e74b5 (diff)
downloadpython-coveragepy-git-00af049c37837925412dff79dede4055db291f3c.tar.gz
Fix the Mako regexes
Diffstat (limited to 'coverage/codeunit.py')
-rw-r--r--coverage/codeunit.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/coverage/codeunit.py b/coverage/codeunit.py
index fac43ed7..f19a1799 100644
--- a/coverage/codeunit.py
+++ b/coverage/codeunit.py
@@ -218,11 +218,11 @@ class MakoParser(object):
self.py_to_html = {}
html_linenum = None
for linenum, line in enumerate(py_source.splitlines(), start=1):
- m_source_line = re.search(r"^\s+# SOURCE LINE (\d+)$", line)
+ m_source_line = re.search(r"^\s*# SOURCE LINE (\d+)$", line)
if m_source_line:
html_linenum = int(m_source_line.group(1))
else:
- m_boilerplate_line = re.search(r"^\s+# BOILERPLATE ", line)
+ m_boilerplate_line = re.search(r"^\s*# BOILERPLATE", line)
if m_boilerplate_line:
html_linenum = None
elif html_linenum: