]> git.ipfire.org Git - thirdparty/jinja.git/commitdiff
Fixed typos: overriden to overridden 188/head
authorJonas Nockert <jonasnockert@gmail.com>
Sat, 23 Feb 2013 19:34:47 +0000 (20:34 +0100)
committerJonas Nockert <jonasnockert@gmail.com>
Sat, 23 Feb 2013 19:34:47 +0000 (20:34 +0100)
docs/faq.rst
ext/django2jinja/django2jinja.py
jinja2/compiler.py
jinja2/sandbox.py

index d066bffa1e8bdb9dac20f795708ca634acbe4e38..5c80d334aa34719e5d6daf3445b4be760b60cccc 100644 (file)
@@ -174,7 +174,7 @@ harder to maintain the code for older Python versions.  If you really need
 Python 2.3 support you either have to use `Jinja 1`_ or other templating
 engines that still support 2.3.
 
-My Macros are overriden by something
+My Macros are overridden by something
 ------------------------------------
 
 In some situations the Jinja scoping appears arbitrary:
index 6d9e76cd7d4b1ebdd5f29114878114e1fa4b23ca..ad9627ffbc37918e02a9a9298408c2b86a15f961 100644 (file)
@@ -609,7 +609,7 @@ def width_ratio(writer, node):
 @node(core_tags.WithNode)
 def with_block(writer, node):
     writer.warn('with block expanded into set statement.  This could cause '
-                'variables following that block to be overriden.', node)
+                'variables following that block to be overridden.', node)
     writer.start_block()
     writer.write('set %s = ' % node.name)
     writer.node(node.var)
index b21cb3865db61c08c321117b8cf6c8a08fa44f15..d287ff602b48e12d793799caecd69eec52016a8f 100644 (file)
@@ -663,16 +663,16 @@ class CodeGenerator(NodeVisitor):
         # it without aliasing all the variables.
         # this could be fixed in Python 3 where we have the nonlocal
         # keyword or if we switch to bytecode generation
-        overriden_closure_vars = (
+        overridden_closure_vars = (
             func_frame.identifiers.undeclared &
             func_frame.identifiers.declared &
             (func_frame.identifiers.declared_locally |
              func_frame.identifiers.declared_parameter)
         )
-        if overriden_closure_vars:
+        if overridden_closure_vars:
             self.fail('It\'s not possible to set and access variables '
                       'derived from an outer scope! (affects: %s)' %
-                      ', '.join(sorted(overriden_closure_vars)), node.lineno)
+                      ', '.join(sorted(overridden_closure_vars)), node.lineno)
 
         # remove variables from a closure from the frame's undeclared
         # identifiers.
index a1cbb29ac3166101945ea9f8e9fdb49c60095d31..c12d53a276115a8e350210c5a7f04f3eb305c026 100644 (file)
@@ -114,7 +114,7 @@ def is_internal_attribute(obj, attr):
     """Test if the attribute given is an internal python attribute.  For
     example this function returns `True` for the `func_code` attribute of
     python objects.  This is useful if the environment method
-    :meth:`~SandboxedEnvironment.is_safe_attribute` is overriden.
+    :meth:`~SandboxedEnvironment.is_safe_attribute` is overridden.
 
     >>> from jinja2.sandbox import is_internal_attribute
     >>> is_internal_attribute(lambda: None, "func_code")