mirror of
https://gitee.com/openharmony/third_party_jinja2
synced 2024-11-30 10:51:22 +00:00
removed unusde __delitem__ for context
--HG-- branch : trunk
This commit is contained in:
parent
b6fc38c58d
commit
b9bed15d7b
@ -64,11 +64,6 @@ class TemplateContext(dict):
|
||||
dict.__setitem__(self, key, value)
|
||||
self.exported.add(key)
|
||||
|
||||
def __delitem__(self, key):
|
||||
"""On delete we no longer export it."""
|
||||
dict.__delitem__(self, key)
|
||||
self.exported.dicard(key)
|
||||
|
||||
def get_exported(self):
|
||||
"""Get a dict of all exported variables."""
|
||||
return dict((k, self[k]) for k in self.exported)
|
||||
|
Loading…
Reference in New Issue
Block a user