diff options
author | Vytis Banaitis <vytis.banaitis@gmail.com> | 2017-01-20 23:04:05 +0200 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2017-01-26 08:19:27 -0500 |
commit | d1bab24e0144d14513a1411503c95ececb425188 (patch) | |
tree | 187452bf7b66a9600abc47570ccae22e6d539ede /django/views/debug.py | |
parent | 888c1e9bfe49135d049cbdcbbb0f2e97a1a0a1f5 (diff) | |
download | django-d1bab24e0144d14513a1411503c95ececb425188.tar.gz |
Refs #23919, #27778 -- Removed obsolete mentions of unicode.
Diffstat (limited to 'django/views/debug.py')
-rw-r--r-- | django/views/debug.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/views/debug.py b/django/views/debug.py index 7094299e60..4fe3f35a2e 100644 --- a/django/views/debug.py +++ b/django/views/debug.py @@ -263,7 +263,7 @@ class ExceptionReporter: frame_vars = [] for k, v in frame['vars']: v = pprint(v) - # The force_escape filter assume unicode, make sure that works + # 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 @@ -360,7 +360,7 @@ class ExceptionReporter: return None, [], None, [] # If we just read the source from a file, or if the loader did not - # apply tokenize.detect_encoding to decode the source into a Unicode + # apply tokenize.detect_encoding to decode the source into a # string, then we should do that ourselves. if isinstance(source[0], bytes): encoding = 'ascii' |