summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorMin ho Kim <minho42@gmail.com>2019-08-06 01:47:50 +1000
committerCarlton Gibson <carlton@noumenal.es>2019-08-07 11:23:14 +0200
commit65e86948b80262574058a94ccaae3a9b59c3faea (patch)
treee3b74cea769a64bd2adb882b0dfb975fa200867c /django
parent052388aba47ba7166886fc741cac5ce3b22fea58 (diff)
Corrected several typos in string literals and test names.
Diffstat (limited to 'django')
-rw-r--r--django/contrib/gis/gdal/prototypes/srs.py2
-rw-r--r--django/core/files/uploadhandler.py2
-rw-r--r--django/core/mail/message.py2
3 files changed, 3 insertions, 3 deletions
diff --git a/django/contrib/gis/gdal/prototypes/srs.py b/django/contrib/gis/gdal/prototypes/srs.py
index 9b1da3ee06..45d5234346 100644
--- a/django/contrib/gis/gdal/prototypes/srs.py
+++ b/django/contrib/gis/gdal/prototypes/srs.py
@@ -65,7 +65,7 @@ to_pretty_wkt = string_output(
# Memory leak fixed in GDAL 1.5; still exists in 1.4.
to_xml = string_output(lgdal.OSRExportToXML, [c_void_p, POINTER(c_char_p), c_char_p], offset=-2, decoding='utf-8')
-# String attribute retrival routines.
+# String attribute retrieval routines.
get_attr_value = const_string_output(std_call('OSRGetAttrValue'), [c_void_p, c_char_p, c_int], decoding='utf-8')
get_auth_name = const_string_output(lgdal.OSRGetAuthorityName, [c_void_p, c_char_p], decoding='ascii')
get_auth_code = const_string_output(lgdal.OSRGetAuthorityCode, [c_void_p, c_char_p], decoding='ascii')
diff --git a/django/core/files/uploadhandler.py b/django/core/files/uploadhandler.py
index ddfb7e0116..613983581c 100644
--- a/django/core/files/uploadhandler.py
+++ b/django/core/files/uploadhandler.py
@@ -52,7 +52,7 @@ class SkipFile(UploadFileException):
class StopFutureHandlers(UploadFileException):
"""
- Upload handers that have handled a file and do not want future handlers to
+ Upload handlers that have handled a file and do not want future handlers to
run should raise this exception instead of returning None.
"""
pass
diff --git a/django/core/mail/message.py b/django/core/mail/message.py
index 234c9416c6..e2bd712f56 100644
--- a/django/core/mail/message.py
+++ b/django/core/mail/message.py
@@ -86,7 +86,7 @@ def sanitize_address(addr, encoding):
if rest:
# The entire email address must be parsed.
raise ValueError(
- 'Invalid adddress; only %s could be parsed from "%s"'
+ 'Invalid address; only %s could be parsed from "%s"'
% (token, addr)
)
nm = token.display_name or ''