Ticket #1626: typos.diff

File typos.diff, 5.7 KB (added by dexter@…, 19 years ago)
  • django/contrib/admin/templatetags/admin_list.py

     
    7979            if field_name == '__repr__':
    8080                header = lookup_opts.verbose_name
    8181            else:
    82                 func = getattr(cl.mod.Klass, field_name) # Let AttributeErrors propogate.
     82                func = getattr(cl.mod.Klass, field_name) # Let AttributeErrors propagate.
    8383                try:
    8484                    header = func.short_description
    8585                except AttributeError:
  • django/utils/_threading_local.py

     
    149149            raise TypeError("Initialization arguments are not supported")
    150150
    151151        # We need to create the thread dict in anticipation of
    152         # __init__ being called, to make sire we don't cal it
     152        # __init__ being called, to make sure we don't call it
    153153        # again ourselves.
    154154        dict = object.__getattribute__(self, '__dict__')
    155155        currentThread().__dict__[key] = dict
  • django/core/meta/__init__.py

     
    17331733            if opts.one_to_one_field:
    17341734                # Sanity check -- Make sure the "parent" object exists.
    17351735                # For example, make sure the Place exists for the Restaurant.
    1736                 # Let the ObjectDoesNotExist exception propogate up.
     1736                # Let the ObjectDoesNotExist exception propagate up.
    17371737                lookup_kwargs = opts.one_to_one_field.rel.limit_choices_to
    17381738                lookup_kwargs['%s__exact' % opts.one_to_one_field.rel.field_name] = obj_key
    17391739                _ = opts.one_to_one_field.rel.to.get_model_module().get_object(**lookup_kwargs)
  • django/core/meta/fields.py

     
    8080
    8181# A guide to Field parameters:
    8282#
    83 #   * name:      The name of the field specifed in the model.
     83#   * name:      The name of the field specified in the model.
    8484#   * attname:   The attribute to use on the model object. This is the same as
    8585#                "name", except in the case of ForeignKeys, where "_id" is
    8686#                appended.
  • django/core/servers/basehttp.py

     
    4646        raise StopIteration
    4747
    4848# Regular expression that matches `special' characters in parameters, the
    49 # existance of which force quoting of the parameter value.
     49# existence of which force quoting of the parameter value.
    5050tspecials = re.compile(r'[ \(\)<>@,;:\\"/\[\]\?=]')
    5151
    5252def _formatparam(param, value=None, quote=1):
  • tests/testapp/models/basic.py

     
    195195
    196196API_TESTS += """
    197197
    198 # You can manually specify the primary key when creating a new objet
     198# You can manually specify the primary key when creating a new object
    199199>>> a101 = articles.Article(id=101, headline='Article 101', pub_date=datetime(2005, 7, 31, 12, 30, 45))
    200200>>> a101.save()
    201201>>> a101 = articles.get_object(pk=101)
  • tests/othertests/cache.py

     
    1515cache.set("key", "value")
    1616assert cache.get("key") == "value"
    1717
    18 # get with non-existant keys
     18# get with non-existent keys
    1919assert cache.get("does not exist") is None
    2020assert cache.get("does not exist", "bang!") == "bang!"
    2121
     
    5757# expiration
    5858cache.set('expire', 'very quickly', 1)
    5959time.sleep(2)
    60 assert cache.get("expire") == None
    61  No newline at end of file
     60assert cache.get("expire") == None
  • tests/doctest.py

     
    846846        if extraglobs is not None:
    847847            globs.update(extraglobs)
    848848
    849         # Recursively expore `obj`, extracting DocTests.
     849        # Recursively explore `obj`, extracting DocTests.
    850850        tests = []
    851851        self._find(tests, obj, name, module, source_lines, globs, {})
    852852        return tests
     
    12101210        # Process each example.
    12111211        for examplenum, example in enumerate(test.examples):
    12121212
    1213             # If REPORT_ONLY_FIRST_FAILURE is set, then supress
     1213            # If REPORT_ONLY_FIRST_FAILURE is set, then suppress
    12141214            # reporting after the first failure.
    12151215            quiet = (self.optionflags & REPORT_ONLY_FIRST_FAILURE and
    12161216                     failures > 0)
  • docs/modpython.txt

     
    190190==============
    191191
    192192When you use Apache/mod_python, errors will be caught by Django -- in other
    193 words, they won't propogate to the Apache level and won't appear in the Apache
     193words, they won't propagate to the Apache level and won't appear in the Apache
    194194``error_log``.
    195195
    196196The exception for this is if something is really wonky in your Django setup. In
Back to Top