diff options
author | Tim Graham <timograham@gmail.com> | 2017-02-09 09:03:28 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-09 09:03:28 -0500 |
commit | 21f13ff5b3d5a42d62f38398c010efcdce30dad7 (patch) | |
tree | 3e5f856359423d28ab68e60d9fdf5d176ee0f2b3 | |
parent | 1b96dbdad0f9e65bf31764aa017f411d116682fc (diff) | |
download | django-21f13ff5b3d5a42d62f38398c010efcdce30dad7.tar.gz |
Refs #23919 -- Removed an used block in ExceptionReporter.get_traceback_data().
The test from refs #20368 only runs this block on Python 2.
-rw-r--r-- | django/views/debug.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/django/views/debug.py b/django/views/debug.py index c7c1b20f30..2b829716fd 100644 --- a/django/views/debug.py +++ b/django/views/debug.py @@ -258,9 +258,6 @@ class ExceptionReporter: frame_vars = [] for k, v in frame['vars']: v = pprint(v) - # The force_escape filter assumes str, make sure that works - if isinstance(v, bytes): - v = v.decode('utf-8', 'replace') # don't choke on non-utf-8 input # Trim large blobs of data if len(v) > 4096: v = '%s... <trimmed %d bytes string>' % (v[0:4096], len(v)) |