summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
Diffstat (limited to 'django')
-rw-r--r--django/template/defaulttags.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/template/defaulttags.py b/django/template/defaulttags.py
index 74998cb403..6c2f33b862 100644
--- a/django/template/defaulttags.py
+++ b/django/template/defaulttags.py
@@ -89,7 +89,7 @@ class CycleNode(Node):
class DebugNode(Node):
def render(self, context):
from pprint import pformat
- output = [pformat(val) for val in context]
+ output = [force_text(pformat(val)) for val in context]
output.append('\n\n')
output.append(pformat(sys.modules))
return ''.join(output)