]> git.ipfire.org Git - thirdparty/jinja.git/commitdiff
Fix typos (#815)
authorluzpaz <luzpaz@users.noreply.github.com>
Sun, 18 Feb 2018 14:57:01 +0000 (09:57 -0500)
committerAdrian <adrian@planetcoding.net>
Sun, 18 Feb 2018 14:57:01 +0000 (15:57 +0100)
Found via `codespell -q 3` using v1.12.0.dev0

jinja2/environment.py
jinja2/filters.py
jinja2/nodes.py
jinja2/sandbox.py
jinja2/utils.py
scripts/pylintrc

index 295ff13e578b703df84847ad2893a219c30ae700..2687889a3358eb7a9077eb35107d488d2b5f6f5d 100644 (file)
@@ -1076,7 +1076,7 @@ class Template(object):
 
     def make_module_async(self, vars=None, shared=False, locals=None):
         """As template module creation can invoke template code for
-        asynchronous exections this method must be used instead of the
+        asynchronous executions this method must be used instead of the
         normal :meth:`make_module` one.  Likewise the module attribute
         becomes unavailable in async mode.
         """
index 267ddddaa03478ed77d640c011b8f2c0d6641d04..a323e2587c07108a20dcbe9397b99b7443b39ed1 100644 (file)
@@ -400,7 +400,7 @@ def do_join(eval_ctx, value, d=u'', attribute=None):
     if attribute is not None:
         value = imap(make_attrgetter(eval_ctx.environment, attribute), value)
 
-    # no automatic escaping?  joining is a lot eaiser then
+    # no automatic escaping?  joining is a lot easier then
     if not eval_ctx.autoescape:
         return text_type(d).join(imap(text_type, value))
 
index 35bcd6815e7fea132472f16ce0bdba8a2bd3f5cd..5ab2b31954d7ed9694f84efb3fab221c399fb4f8 100644 (file)
@@ -636,7 +636,7 @@ class Filter(Expr):
 
         # we have to be careful here because we call filter_ below.
         # if this variable would be called filter, 2to3 would wrap the
-        # call in a list beause it is assuming we are talking about the
+        # call in a list because it is assuming we are talking about the
         # builtin filter function here which no longer returns a list in
         # python 3.  because of that, do not rename filter_ to filter!
         filter_ = self.environment.filters.get(self.name)
index 93fb9d45f32d8b511a83c3271a45e0abe01e77fe..5cf36f90e5794530b61d83f5b20293b9ee688220 100644 (file)
@@ -40,7 +40,7 @@ else:
 #: unsafe method attributes.  function attributes are unsafe for methods too
 UNSAFE_METHOD_ATTRIBUTES = set(['im_class', 'im_func', 'im_self'])
 
-#: unsafe generator attirbutes.
+#: unsafe generator attributes.
 UNSAFE_GENERATOR_ATTRIBUTES = set(['gi_frame', 'gi_code'])
 
 #: unsafe attributes on coroutines
@@ -299,7 +299,7 @@ class SandboxedEnvironment(Environment):
     def intercept_unop(self, operator):
         """Called during template compilation with the name of a unary
         operator to check if it should be intercepted at runtime.  If this
-        method returns `True`, :meth:`call_unop` is excuted for this unary
+        method returns `True`, :meth:`call_unop` is executed for this unary
         operator.  The default implementation of :meth:`call_unop` will use
         the :attr:`unop_table` dictionary to perform the operator with the
         same logic as the builtin one.
index 502a311c08e549ac395a02650543e424a6d3e11c..083ea274b9fc7f0b492eceda35de349525e9fb18 100644 (file)
@@ -614,7 +614,7 @@ class Joiner(object):
 
 class Namespace(object):
     """A namespace object that can hold arbitrary attributes.  It may be
-    initialized from a dictionary or with keyword argments."""
+    initialized from a dictionary or with keyword arguments."""
 
     def __init__(*args, **kwargs):
         self, args = args[0], args[1:]
index 6a5f0d7b1c45c8ffe7c0aae23b5ed5bf803a7fc8..2f190b135fa0c07eb3908da101b5350f56576eb9 100644 (file)
@@ -91,7 +91,7 @@ comment=no
 # * unused variables / imports
 # * undefined variables
 # * redefinition of variable from builtins or from an outer scope
-# * use of variable before assigment
+# * use of variable before assignment
 # 
 [VARIABLES]
 
@@ -118,8 +118,8 @@ ignore-mixin-members=yes
 # access to some undefined attributes.
 zope=no
 
-# List of members which are usually get through zope's acquisition mecanism and
-# so shouldn't trigger E0201 when accessed (need zope=yes to be considered).
+# List of members which are usually gotten through zope's acquisition mechanism
+# and so shouldn't trigger E0201 when accessed (need zope=yes to be considered)
 acquired-members=REQUEST,acl_users,aq_parent