Skip to content
Myr

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

6 files+9 added−9 removed

modified:jinja2/environment.py+1 added-1 removed
1074 unmodified lines
1075 return TemplateModule(self, self.new_context(vars, shared, locals))10761077 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 implementation
195 unmodified lines
modified:jinja2/filters.py+1 added-1 removed
398 unmodified lines
399 """400 if attribute is not None:401 value = imap(make_attrgetter(eval_ctx.environment, attribute), value)402403 # 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))406407 # if the delimiter doesn't have an html representation we check
783 unmodified lines
modified:jinja2/nodes.py+1 added-1 removed
634 unmodified lines
635 raise Impossible()636637 # 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 lines
modified:jinja2/sandbox.py+2 added-2 removed
38 unmodified lines
3940#: unsafe method attributes. function attributes are unsafe for methods too41UNSAFE_METHOD_ATTRIBUTES = set(['im_class', 'im_func', 'im_self'])4243#: unsafe generator attirbutes.43#: unsafe generator attributes.44UNSAFE_GENERATOR_ATTRIBUTES = set(['gi_frame', 'gi_code'])4546#: unsafe attributes on coroutines47UNSAFE_COROUTINE_ATTRIBUTES = set(['cr_frame', 'cr_code'])
250 unmodified lines
298299 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 lines
modified:jinja2/utils.py+1 added-1 removed
612 unmodified lines
613614615class 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."""618619 def __init__(*args, **kwargs):620 self, args = args[0], args[1:]621 self.__attrs = dict(*args, **kwargs)
26 unmodified lines
modified:scripts/pylintrc+3 added-3 removed
89 unmodified lines
90# 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]9798# Tells whether we should check for unused import in __init__ files.
18 unmodified lines
117# When zope mode is activated, consider the acquired-members option to ignore118# access to some undefined attributes.119zope=no120121# 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)123acquired-members=REQUEST,acl_users,aq_parent124125126# checks for :
175 unmodified lines