Approaching python3 compatibility
--HG--
branch : trunk
diff --git a/jinja2/environment.py b/jinja2/environment.py
index cda6171..965b058 100644
--- a/jinja2/environment.py
+++ b/jinja2/environment.py
@@ -808,15 +808,15 @@
self.__dict__.update(context.get_exported())
self.__name__ = template.name
- def __unicode__(self):
- return concat(self._body_stream)
-
def __html__(self):
return Markup(concat(self._body_stream))
def __str__(self):
return unicode(self).encode('utf-8')
+ def __unicode__(self):
+ return concat(self._body_stream)
+
def __repr__(self):
if self.__name__ is None:
name = 'memory:%x' % id(self)