Ticket #23060: 23060.diff
File 23060.diff, 538 bytes (added by , 10 years ago) |
---|
-
django/template/defaulttags.py
diff --git a/django/template/defaulttags.py b/django/template/defaulttags.py index ceeb7f3..806ebeb 100644
a b class CycleNode(Node): 87 87 class DebugNode(Node): 88 88 def render(self, context): 89 89 from pprint import pformat 90 output = [ pformat(val) for val in context]90 output = [smart_text(pformat(val)) for val in context] 91 91 output.append('\n\n') 92 92 output.append(pformat(sys.modules)) 93 93 return ''.join(output)