diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2011-03-22 10:09:25 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2011-03-22 10:09:25 -0400 |
commit | 266abebaf9aad33e139f5f2ebd50ad604d6f3f86 (patch) | |
tree | f1241c2ea06f18a9d071e0ab0231b9c26f2b8ead /mako/exceptions.py | |
parent | cdfba8d24dffb380addd9930b81ef1d991cc2255 (diff) | |
download | external_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.py | 2 |
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 |