Fix typos (#815)
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Found via `codespell -q 3` using v1.12.0.dev0
authored by luzpaz · committed by Adrian · parent 041b738 · Browse files · 6 files·+9 added−9 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
6 files+9 added−9 removed
- other:+9 added−9 removed
Provenance
- Commit
f2e9280- Tree
9a54d0f- Author
luzpaz <luzpaz@users.noreply.github.com>- Committer
Adrian <adrian@planetcoding.net>- Parent
041b738
6 files changed+9 added−9 removed
modified:jinja2/environment.py+1 added-1 removed
1074 unmodified lines1075 return TemplateModule(self, self.new_context(vars, shared, locals))1076 1077 def make_module_async(self, vars=None, shared=False, locals=None):1078 """As template module creation can invoke template code for1079- asynchronous exections this method must be used instead of the1079+ asynchronous executions this method must be used instead of the1080 normal :meth:`make_module` one. Likewise the module attribute1081 becomes unavailable in async mode.1082 """1083 # see asyncsupport for the actual implementation195 unmodified linesmodified:jinja2/filters.py+1 added-1 removed
398 unmodified lines399 """400 if attribute is not None:401 value = imap(make_attrgetter(eval_ctx.environment, attribute), value)402 403- # no automatic escaping? joining is a lot eaiser then403+ # no automatic escaping? joining is a lot easier then404 if not eval_ctx.autoescape:405 return text_type(d).join(imap(text_type, value))406 407 # if the delimiter doesn't have an html representation we check783 unmodified linesmodified:jinja2/nodes.py+1 added-1 removed
634 unmodified lines635 raise Impossible()636 637 # we have to be careful here because we call filter_ below.638 # if this variable would be called filter, 2to3 would wrap the639- # call in a list beause it is assuming we are talking about the639+ # call in a list because it is assuming we are talking about the640 # builtin filter function here which no longer returns a list in641 # python 3. because of that, do not rename filter_ to filter!642 filter_ = self.environment.filters.get(self.name)643 356 unmodified linesmodified:jinja2/sandbox.py+2 added-2 removed
38 unmodified lines39 40 #: unsafe method attributes. function attributes are unsafe for methods too41 UNSAFE_METHOD_ATTRIBUTES = set(['im_class', 'im_func', 'im_self'])42 43-#: unsafe generator attirbutes.43+#: unsafe generator attributes.44 UNSAFE_GENERATOR_ATTRIBUTES = set(['gi_frame', 'gi_code'])45 46 #: unsafe attributes on coroutines47 UNSAFE_COROUTINE_ATTRIBUTES = set(['cr_frame', 'cr_code'])250 unmodified lines298 299 def intercept_unop(self, operator):300 """Called during template compilation with the name of a unary301 operator to check if it should be intercepted at runtime. If this302- method returns `True`, :meth:`call_unop` is excuted for this unary302+ method returns `True`, :meth:`call_unop` is executed for this unary303 operator. The default implementation of :meth:`call_unop` will use304 the :attr:`unop_table` dictionary to perform the operator with the305 same logic as the builtin one.306 169 unmodified linesmodified:jinja2/utils.py+1 added-1 removed
612 unmodified lines613 614 615 class Namespace(object):616 """A namespace object that can hold arbitrary attributes. It may be617- initialized from a dictionary or with keyword argments."""617+ initialized from a dictionary or with keyword arguments."""618 619 def __init__(*args, **kwargs):620 self, args = args[0], args[1:]621 self.__attrs = dict(*args, **kwargs)26 unmodified linesmodified:scripts/pylintrc+3 added-3 removed
89 unmodified lines90 # checks for91 # * unused variables / imports92 # * undefined variables93 # * redefinition of variable from builtins or from an outer scope94-# * use of variable before assigment94+# * use of variable before assignment95 # 96 [VARIABLES]97 98 # Tells whether we should check for unused import in __init__ files.18 unmodified lines117 # When zope mode is activated, consider the acquired-members option to ignore118 # access to some undefined attributes.119 zope=no120 121-# List of members which are usually get through zope's acquisition mecanism and122-# so shouldn't trigger E0201 when accessed (need zope=yes to be considered).121+# List of members which are usually gotten through zope's acquisition mechanism122+# and so shouldn't trigger E0201 when accessed (need zope=yes to be considered)123 acquired-members=REQUEST,acl_users,aq_parent124 125 126 # checks for :175 unmodified lines