summaryrefslogtreecommitdiff
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
parentcdfba8d24dffb380addd9930b81ef1d991cc2255 (diff)
downloadmako-266abebaf9aad33e139f5f2ebd50ad604d6f3f86.tar.gz
- 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]
-rw-r--r--CHANGES6
-rw-r--r--mako/__init__.py2
-rw-r--r--mako/exceptions.py2
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