mirror of
https://github.com/django/django.git
synced 2025-09-29 13:34:57 +00:00
[1.8.x] Refs #24324 -- Fixed crash in {% debug %} tag on Python 2.
If Django is installed in a path that contains non-ASCII characters,
the tag failed with UnicodeDecodeError.
Backport of 098fa12dd3
from master
This commit is contained in:
parent
2aa06e439a
commit
1153bccc1b
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ class DebugNode(Node):
|
|||
from pprint import pformat
|
||||
output = [force_text(pformat(val)) for val in context]
|
||||
output.append('\n\n')
|
||||
output.append(pformat(sys.modules))
|
||||
output.append(force_text(pformat(sys.modules)))
|
||||
return ''.join(output)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue