Skip to content
Myr

small improvement

Before adoption: this commit came in with the history the project adopted, so no landing records it.

--HG-- branch : trunk

authored by Benjamin Wiegand · committed by Benjamin Wiegand · parent a315274 · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:jinja2/utils.py+2 added-2 removed
410 unmodified lines
411try:412 from functools import partial413except ImportError:414 class partial(object):415 def __init__(self, func, *args, **kwargs):416 self._func = func415 def __init__(self, _func, *args, **kwargs):416 self._func = _func417 self._args = args418 self._kwargs = kwargs419 def __call__(self, *args, **kwargs):420 kwargs.update(self._kwargs)
1 unmodified line