Commit 5da6ce11 authored by Tim Graham's avatar Tim Graham
Browse files

[1.5.x] Fixed typos in docs and comments

Backport of ee26797c from master
parent f6075b05
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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
+1 −1
Original line number Diff line number Diff line
@@ -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
+1 −1
Original line number Diff line number Diff line
@@ -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:
+1 −1
Original line number Diff line number Diff line
@@ -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)
+1 −1
Original line number Diff line number Diff line
@@ -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

Loading