1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

[1.5.x] Fixed typos in docs and comments

Backport of ee26797cff from master
This commit is contained in:
Tim Graham
2013-01-29 08:45:40 -07:00
parent f6075b0596
commit 5da6ce11ed
15 changed files with 20 additions and 17 deletions

View File

@@ -76,7 +76,7 @@ class OGRGeometry(GDALBase):
str_instance = isinstance(geom_input, six.string_types)
# If HEX, unpack input to to a binary buffer.
# If HEX, unpack input to a binary buffer.
if str_instance and hex_regex.match(geom_input):
geom_input = memoryview(a2b_hex(geom_input.upper().encode()))
str_instance = False

View File

@@ -27,7 +27,7 @@ def bin_constructor(func):
# HEX & WKB output
def bin_output(func):
"Generates a prototype for the routines that return a a sized string."
"Generates a prototype for the routines that return a sized string."
func.argtypes = [GEOM_PTR, POINTER(c_size_t)]
func.errcheck = check_sized_string
func.restype = c_uchar_p

View File

@@ -24,7 +24,7 @@ def add_srs_entry(srs, auth_name='EPSG', auth_srid=None, ref_sys_name=None,
Defaults to the SRID determined by GDAL.
ref_sys_name:
For SpatiaLite users only, sets the value of the the `ref_sys_name` field.
For SpatiaLite users only, sets the value of the `ref_sys_name` field.
Defaults to the name determined by GDAL.
database:

View File

@@ -32,7 +32,7 @@ def serve(request, path, document_root=None, insecure=False, **kwargs):
"""
if not settings.DEBUG and not insecure:
raise ImproperlyConfigured("The staticfiles view can only be used in "
"debug mode or if the the --insecure "
"debug mode or if the --insecure "
"option of 'runserver' is used")
normalized_path = posixpath.normpath(unquote(path)).lstrip('/')
absolute_path = finders.find(normalized_path)

View File

@@ -1689,7 +1689,7 @@ def prefetch_related_objects(result_cache, related_lookups):
continue
done_lookups.add(lookup)
# Top level, the list of objects to decorate is the the result cache
# Top level, the list of objects to decorate is the result cache
# from the primary QuerySet. It won't be for deeper levels.
obj_list = result_cache

View File

@@ -41,10 +41,10 @@ def _get_new_csrf_key():
def get_token(request):
"""
Returns the the CSRF token required for a POST form. The token is an
Returns the CSRF token required for a POST form. The token is an
alphanumeric value.
A side effect of calling this function is to make the the csrf_protect
A side effect of calling this function is to make the csrf_protect
decorator and the CsrfViewMiddleware add a CSRF cookie and a 'Vary: Cookie'
header to the outgoing response. For this reason, you may need to use this
function lazily, as is done by the csrf context processor.