removed unusde __delitem__ for context

--HG--
branch : trunk
This commit is contained in:
Armin Ronacher 2008-04-15 22:10:46 +02:00
parent b6fc38c58d
commit b9bed15d7b

View File

@ -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)