projects
/
jinja2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b6fc38c
)
removed unusde __delitem__ for context
author
Armin Ronacher
<armin.ronacher@active-4.com>
Tue, 15 Apr 2008 20:10:46 +0000
(22:10 +0200)
committer
Armin Ronacher
<armin.ronacher@active-4.com>
Tue, 15 Apr 2008 20:10:46 +0000
(22:10 +0200)
--HG--
branch : trunk
jinja2/runtime.py
patch
|
blob
|
history
diff --git
a/jinja2/runtime.py
b/jinja2/runtime.py
index d3864b863c5d48daf8a0ac681c8b5065b4cddbce..70ef9d8f1abd1b5ff20517ceccb177f2525c19d8 100644
(file)
--- a/
jinja2/runtime.py
+++ b/
jinja2/runtime.py
@@
-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)