aboutsummaryrefslogtreecommitdiff
path: root/jinja2/environment.py
diff options
context:
space:
mode:
Diffstat (limited to 'jinja2/environment.py')
-rw-r--r--jinja2/environment.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/jinja2/environment.py b/jinja2/environment.py
index cda61713..965b0582 100644
--- a/jinja2/environment.py
+++ b/jinja2/environment.py
@@ -808,15 +808,15 @@ class TemplateModule(object):
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)