Skip to content

Commit 34d5d39

Browse files
committed
Capitalize "Unicode" in code, comments, and docs
It is a proper noun.
1 parent 677a3e2 commit 34d5d39

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

debug_toolbar/panels/templates/panel.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def _store_template_info(self, sender, **kwargs):
9999
temp_layer = {}
100100
for key, value in context_layer.items():
101101
# Replace any request elements - they have a large
102-
# unicode representation and the request data is
102+
# Unicode representation and the request data is
103103
# already made available from the Request panel.
104104
if isinstance(value, http.HttpRequest):
105105
temp_layer[key] = "<<request>>"
@@ -125,7 +125,7 @@ def _store_template_info(self, sender, **kwargs):
125125
except SQLQueryTriggered:
126126
temp_layer[key] = "<<triggers database query>>"
127127
except UnicodeEncodeError:
128-
temp_layer[key] = "<<unicode encode error>>"
128+
temp_layer[key] = "<<Unicode encode error>>"
129129
except Exception:
130130
temp_layer[key] = "<<unhandled exception>>"
131131
else:

docs/changes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ The following deprecated settings have been removed:
153153
* Convert system check errors to warnings to accommodate exotic
154154
configurations.
155155
* Fixed a crash when explaining raw querysets.
156-
* Fixed an obscure unicode error with binary data fields.
156+
* Fixed an obscure Unicode error with binary data fields.
157157
* Added MariaDB and Python 3.7 builds to the CI.
158158

159159
1.10.1 (2018-09-11)

0 commit comments

Comments
 (0)