Commit 3ee18400 authored by Ville Skyttä's avatar Ville Skyttä
Browse files

Fixed #25668 -- Misc spelling errors

parent a10cbbbc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -259,7 +259,7 @@ class BaseCache(object):
        return version + delta

    def decr_version(self, key, delta=1, version=None):
        """Substracts delta from the cache version for the supplied key. Returns
        """Subtracts delta from the cache version for the supplied key. Returns
        the new version.
        """
        return self.incr_version(key, -delta, version)
+1 −1
Original line number Diff line number Diff line
@@ -966,7 +966,7 @@ class TestCase(TransactionTestCase):
    Similar to TransactionTestCase, but uses `transaction.atomic()` to achieve
    test isolation.

    In most situation, TestCase should be prefered to TransactionTestCase as
    In most situations, TestCase should be preferred to TransactionTestCase as
    it allows faster execution. However, there are some situations where using
    TransactionTestCase might be necessary (e.g. testing some transactional
    behavior).
+1 −1
Original line number Diff line number Diff line
@@ -223,7 +223,7 @@ def escape_uri_path(path):
    #   reserved    = ";" | "/" | "?" | ":" | "@" | "&" | "=" | "+" | "$" | ","
    #   unreserved  = alphanum | mark
    #   mark        = "-" | "_" | "." | "!" | "~" | "*" | "'" | "(" | ")"
    # The list of safe characters here is constructed substracting ";", "=",
    # The list of safe characters here is constructed subtracting ";", "=",
    # and "?" according to section 3.3 of RFC 2396.
    # The reason for not subtracting and escaping "/" is that we are escaping
    # the entire path, not a path segment.
+2 −2
Original line number Diff line number Diff line
@@ -144,7 +144,7 @@ DEFAULT_PALETTE = DARK_PALETTE
def parse_color_setting(config_string):
    """Parse a DJANGO_COLORS environment variable to produce the system palette

    The general form of a pallete definition is:
    The general form of a palette definition is:

        "palette;role=fg;role=fg/bg;role=fg,option,option;role=fg/bg,option,option"

@@ -156,7 +156,7 @@ def parse_color_setting(config_string):
        option is a display options.

    Specifying a named palette is the same as manually specifying the individual
    definitions for each role. Any individual definitions following the pallete
    definitions for each role. Any individual definitions following the palette
    definition will augment the base palette definition.

    Valid roles:
+1 −1
Original line number Diff line number Diff line
@@ -186,7 +186,7 @@ class UtilsTests(SimpleTestCase):
        self.assertEqual(display_value, '12345')

    @override_settings(USE_L10N=True, USE_THOUSAND_SEPARATOR=True)
    def test_number_formats_with_thousand_seperator_display_for_field(self):
    def test_number_formats_with_thousand_separator_display_for_field(self):
        display_value = display_for_field(12345.6789, models.FloatField(), self.empty_value)
        self.assertEqual(display_value, '12,345.6789')

Loading