summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2020-04-18 07:46:05 -0700
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2020-04-20 12:10:33 +0200
commit505fec6badba0622bbf97bb659188c3d62a9bc58 (patch)
treeca5c256eb32d7f9906c59652049a45690458b52b /django
parent3152146e3abd029be2457d2e780599d399db0fe2 (diff)
Capitalized Unicode in docs, strings, and comments.
Diffstat (limited to 'django')
-rw-r--r--django/core/validators.py2
-rw-r--r--django/db/backends/oracle/base.py4
-rw-r--r--django/utils/encoding.py2
3 files changed, 4 insertions, 4 deletions
diff --git a/django/core/validators.py b/django/core/validators.py
index effa5140ce..2092b52cd6 100644
--- a/django/core/validators.py
+++ b/django/core/validators.py
@@ -61,7 +61,7 @@ class RegexValidator:
@deconstructible
class URLValidator(RegexValidator):
- ul = '\u00a1-\uffff' # unicode letters range (must not be a raw string)
+ ul = '\u00a1-\uffff' # Unicode letters range (must not be a raw string).
# IP patterns
ipv4_re = r'(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)(?:\.(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}'
diff --git a/django/db/backends/oracle/base.py b/django/db/backends/oracle/base.py
index 4d2f5b51f1..8285aacdc1 100644
--- a/django/db/backends/oracle/base.py
+++ b/django/db/backends/oracle/base.py
@@ -38,8 +38,8 @@ def _setup_environment(environ):
_setup_environment([
# Oracle takes client-side character set encoding from the environment.
('NLS_LANG', '.AL32UTF8'),
- # This prevents unicode from getting mangled by getting encoded into the
- # potentially non-unicode database character set.
+ # This prevents Unicode from getting mangled by getting encoded into the
+ # potentially non-Unicode database character set.
('ORA_NCHAR_LITERAL_REPLACE', 'TRUE'),
])
diff --git a/django/utils/encoding.py b/django/utils/encoding.py
index 080b63d214..e1ebacef47 100644
--- a/django/utils/encoding.py
+++ b/django/utils/encoding.py
@@ -157,7 +157,7 @@ _hextobyte = {
for fmt in ['%02x', '%02X']
}
# And then everything above 128, because bytes ≥ 128 are part of multibyte
-# unicode characters.
+# Unicode characters.
_hexdig = '0123456789ABCDEFabcdef'
_hextobyte.update({
(a + b).encode(): bytes.fromhex(a + b)