aboutsummaryrefslogtreecommitdiffstats
path: root/mako/exceptions.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2011-03-22 10:09:25 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2011-03-22 10:09:25 -0400
commit266abebaf9aad33e139f5f2ebd50ad604d6f3f86 (patch)
treef1241c2ea06f18a9d071e0ab0231b9c26f2b8ead /mako/exceptions.py
parentcdfba8d24dffb380addd9930b81ef1d991cc2255 (diff)
downloadexternal_python_mako-266abebaf9aad33e139f5f2ebd50ad604d6f3f86.tar.gz
external_python_mako-266abebaf9aad33e139f5f2ebd50ad604d6f3f86.tar.bz2
external_python_mako-266abebaf9aad33e139f5f2ebd50ad604d6f3f86.zip
- a slight adjustment to the "highlight" logic
for generating template bound stacktraces. Will stick to known template source lines without any extra guessing. [ticket:165]
Diffstat (limited to 'mako/exceptions.py')
-rw-r--r--mako/exceptions.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/mako/exceptions.py b/mako/exceptions.py
index 7348dc0..491d2af 100644
--- a/mako/exceptions.py
+++ b/mako/exceptions.py
@@ -166,8 +166,6 @@ class RichTraceback(object):
match = re.match(r'\s*# SOURCE LINE (\d+)', line)
if match:
template_ln = int(match.group(1))
- else:
- template_ln += 1
module_ln += 1
line_map[module_ln] = template_ln
template_lines = [line for line in