removed attribute local aliasing again because that implementation was broken
--HG--
branch : trunk
diff --git a/jinja2/environment.py b/jinja2/environment.py
index 3f6855a..41b0ce7 100644
--- a/jinja2/environment.py
+++ b/jinja2/environment.py
@@ -297,6 +297,8 @@
If you are :ref:`developing Jinja2 extensions <writing-extensions>`
this gives you a good overview of the node tree generated.
"""
+ if isinstance(filename, unicode):
+ filename = filename.encode('utf-8')
try:
return Parser(self, source, name, filename).parse()
except TemplateSyntaxError, e:
@@ -330,6 +332,7 @@
if self.optimized:
node = optimize(source, self)
source = generate(node, self, name, filename)
+ #print source
if raw:
return source
if filename is None: