Skip to content
Myr

context doesn't convert dict subclasses to dicts now

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

--HG-- branch : trunk

authored by Armin Ronacher · committed by Armin Ronacher · parent d4eb18f · Browse files · 1 file+5 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+5 added−2 removed

  • other:+5 added−2 removed

1 file+5 added−2 removed

modified:jinja/datastructure.py+5 added-2 removed
243 unmodified lines
244 """245246 def __init__(self, *args, **kwargs):247 environment = args[0]248 if not kwargs and len(args) == 2 and isinstance(args[1], dict):249 base = args[1]250 else:251 base = dict(*args[1:], **kwargs)252 super(Context, self).__init__(environment.undefined_singleton,249 environment.globals,250 dict(*args[1:], **kwargs))253 environment.globals, base)254 self._translate_func = None255 self.cache = {}256 self.environment = environment257
438 unmodified lines