diff options
| author | Jon Dufresne <jon.dufresne@gmail.com> | 2018-09-25 07:30:18 -0700 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2018-09-25 10:30:18 -0400 |
| commit | 8c3e0eb1c16abbcded3503b4ea3473b353520f61 (patch) | |
| tree | 1536a0599e8cbae25b3079d27571593fcb59613f /django | |
| parent | abeed587b119197270a885830619694b2c5ba1f1 (diff) | |
Normalized spelling of "lowercase" and "lowercased".
Diffstat (limited to 'django')
| -rw-r--r-- | django/apps/config.py | 2 | ||||
| -rw-r--r-- | django/contrib/admin/widgets.py | 4 | ||||
| -rw-r--r-- | django/contrib/gis/feeds.py | 2 | ||||
| -rw-r--r-- | django/contrib/gis/gdal/geomtype.py | 2 | ||||
| -rw-r--r-- | django/db/models/fields/reverse_related.py | 8 | ||||
| -rw-r--r-- | django/http/request.py | 4 | ||||
| -rw-r--r-- | django/http/response.py | 2 | ||||
| -rw-r--r-- | django/utils/text.py | 2 |
8 files changed, 13 insertions, 13 deletions
diff --git a/django/apps/config.py b/django/apps/config.py index 157fda7238..aeb47923d8 100644 --- a/django/apps/config.py +++ b/django/apps/config.py @@ -44,7 +44,7 @@ class AppConfig: # None if the application doesn't have a models module. self.models_module = None - # Mapping of lower case model names to model classes. Initially set to + # Mapping of lowercase model names to model classes. Initially set to # None to prevent accidental access before import_models() runs. self.models = None diff --git a/django/contrib/admin/widgets.py b/django/contrib/admin/widgets.py index c5cde4b14d..9385104d59 100644 --- a/django/contrib/admin/widgets.py +++ b/django/contrib/admin/widgets.py @@ -356,8 +356,8 @@ class AdminUUIDInputWidget(forms.TextInput): super().__init__(attrs={'class': 'vUUIDField', **(attrs or {})}) -# Mapping of lower case language codes [returned by Django's get_language()] -# to language codes supported by select2. +# Mapping of lowercase language codes [returned by Django's get_language()] to +# language codes supported by select2. # See django/contrib/admin/static/admin/js/vendor/select2/i18n/* SELECT2_TRANSLATIONS = {x.lower(): x for x in [ 'ar', 'az', 'bg', 'ca', 'cs', 'da', 'de', 'el', 'en', 'es', 'et', diff --git a/django/contrib/gis/feeds.py b/django/contrib/gis/feeds.py index 77cf4f481c..cfc078b781 100644 --- a/django/contrib/gis/feeds.py +++ b/django/contrib/gis/feeds.py @@ -59,7 +59,7 @@ class GeoFeedMixin: raise ValueError('Cannot use simple GeoRSS box in W3C Geo feeds.') handler.addQuickElement('georss:box', self.georss_coords(box_coords)) else: - # Getting the lower-case geometry type. + # Getting the lowercase geometry type. gtype = str(geom.geom_type).lower() if gtype == 'point': self.add_georss_point(handler, geom.coords, w3c_geo=w3c_geo) diff --git a/django/contrib/gis/gdal/geomtype.py b/django/contrib/gis/gdal/geomtype.py index 2c6798a00d..3e5fea7484 100644 --- a/django/contrib/gis/gdal/geomtype.py +++ b/django/contrib/gis/gdal/geomtype.py @@ -26,7 +26,7 @@ class OGRGeomType: 6 + wkb25bit: 'MultiPolygon25D', 7 + wkb25bit: 'GeometryCollection25D', } - # Reverse type dictionary, keyed by lower-case of the name. + # Reverse type dictionary, keyed by lowercase of the name. _str_types = {v.lower(): k for k, v in _types.items()} def __init__(self, type_input): diff --git a/django/db/models/fields/reverse_related.py b/django/db/models/fields/reverse_related.py index dddb869513..828d79d6ac 100644 --- a/django/db/models/fields/reverse_related.py +++ b/django/db/models/fields/reverse_related.py @@ -149,10 +149,10 @@ class ForeignObjectRel(FieldCacheMixin): def get_accessor_name(self, model=None): # This method encapsulates the logic that decides what name to give an # accessor descriptor that retrieves related many-to-one or - # many-to-many objects. It uses the lower-cased object_name + "_set", - # but this can be overridden with the "related_name" option. - # Due to backwards compatibility ModelForms need to be able to provide - # an alternate model. See BaseInlineFormSet.get_default_prefix(). + # many-to-many objects. It uses the lowercased object_name + "_set", + # but this can be overridden with the "related_name" option. Due to + # backwards compatibility ModelForms need to be able to provide an + # alternate model. See BaseInlineFormSet.get_default_prefix(). opts = model._meta if model else self.related_model._meta model = model or self.related_model if self.multiple: diff --git a/django/http/request.py b/django/http/request.py index fdd1cf8c67..7dc758d268 100644 --- a/django/http/request.py +++ b/django/http/request.py @@ -538,7 +538,7 @@ def split_domain_port(host): """ Return a (domain, port) tuple from a given host. - Returned domain is lower-cased. If the host is invalid, the domain will be + Returned domain is lowercased. If the host is invalid, the domain will be empty. """ host = host.lower() @@ -566,7 +566,7 @@ def validate_host(host, allowed_hosts): ``example.com`` and any subdomain), ``*`` matches anything, and anything else must match exactly. - Note: This function assumes that the given host is lower-cased and has + Note: This function assumes that the given host is lowercased and has already had the port, if any, stripped off. Return ``True`` for a valid host, ``False`` otherwise. diff --git a/django/http/response.py b/django/http/response.py index f303852a40..f7d248e933 100644 --- a/django/http/response.py +++ b/django/http/response.py @@ -36,7 +36,7 @@ class HttpResponseBase: status_code = 200 def __init__(self, content_type=None, status=None, reason=None, charset=None): - # _headers is a mapping of the lower-case name to the original case of + # _headers is a mapping of the lowercase name to the original case of # the header (required for working with legacy systems) and the header # value. Both the name of the header and its value are ASCII strings. self._headers = {} diff --git a/django/utils/text.py b/django/utils/text.py index 0e41cac493..8e0014fd0a 100644 --- a/django/utils/text.py +++ b/django/utils/text.py @@ -413,7 +413,7 @@ def slugify(value, allow_unicode=False): def camel_case_to_spaces(value): """ - Split CamelCase and convert to lower case. Strip surrounding whitespace. + Split CamelCase and convert to lowercase. Strip surrounding whitespace. """ return re_camel_case.sub(r' \1', value).strip().lower() |
