Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed spelling ("dependant" -> "dependent")

Dependent means reliant on.
A dependant is a person like a child or spouse.

Thanks Andrew Wilcox for the report.
  • Loading branch information...
commit 090315f5dfb9b0a6539daaec6cb88ad93e6e77af 1 parent ede04f9
Tim Graham authored
2  django/utils/cache.py
@@ -168,7 +168,7 @@ def _i18n_cache_key_suffix(request, cache_key):
168 168
         cache_key += '.%s' % getattr(request, 'LANGUAGE_CODE', get_language())
169 169
     if settings.USE_TZ:
170 170
         # The datetime module doesn't restrict the output of tzname().
171  
-        # Windows is known to use non-standard, locale-dependant names.
  171
+        # Windows is known to use non-standard, locale-dependent names.
172 172
         # User-defined tzinfo classes may return absolutely anything.
173 173
         # Hence this paranoid conversion to create a valid cache key.
174 174
         tz_name = force_text(get_current_timezone_name(), errors='ignore')
2  django/utils/feedgenerator.py
@@ -33,7 +33,7 @@
33 33
 from django.utils.timezone import is_aware
34 34
 
35 35
 def rfc2822_date(date):
36  
-    # We can't use strftime() because it produces locale-dependant results, so
  36
+    # We can't use strftime() because it produces locale-dependent results, so
37 37
     # we have to map english month and day names manually
38 38
     months = ('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec',)
39 39
     days = ('Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun')
2  docs/ref/templates/builtins.txt
@@ -2028,7 +2028,7 @@ Formats a time according to the given format.
2028 2028
 
2029 2029
 Given format can be the predefined one :setting:`TIME_FORMAT`, or a custom
2030 2030
 format, same as the :tfilter:`date` filter. Note that the predefined format
2031  
-is locale-dependant.
  2031
+is locale-dependent.
2032 2032
 
2033 2033
 For example::
2034 2034
 
4  docs/topics/i18n/translation.txt
@@ -991,8 +991,8 @@ for a given version of a site — it's a good candidate for caching.
991 991
 
992 992
 Server-side caching will reduce CPU load. It's easily implemented with the
993 993
 :func:`~django.views.decorators.cache.cache_page` decorator. To trigger cache
994  
-invalidation when your translations change, provide a version-dependant key
995  
-prefix, as shown in the example below, or map the view at a version-dependant
  994
+invalidation when your translations change, provide a version-dependent key
  995
+prefix, as shown in the example below, or map the view at a version-dependent
996 996
 URL.
997 997
 
998 998
 .. code-block:: python

0 notes on commit 090315f

Please sign in to comment.
Something went wrong with that request. Please try again.