From 266abebaf9aad33e139f5f2ebd50ad604d6f3f86 Mon Sep 17 00:00:00 2001 From: Mike Bayer <mike_mp@zzzcomputing.com> Date: Tue, 22 Mar 2011 10:09:25 -0400 Subject: [PATCH] - 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] --- CHANGES | 6 ++++++ mako/__init__.py | 2 +- mako/exceptions.py | 2 -- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGES b/CHANGES index bde5841..76a023b 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,9 @@ +0.4.1 +- 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] + 0.4.0 - A 20% speedup for a basic two-page inheritance setup rendering diff --git a/mako/__init__.py b/mako/__init__.py index 78b4191..c0f78ad 100644 --- a/mako/__init__.py +++ b/mako/__init__.py @@ -5,5 +5,5 @@ # the MIT License: http://www.opensource.org/licenses/mit-license.php -__version__ = '0.4.0' +__version__ = '0.4.1' 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 -- GitLab