removed unusde __delitem__ for context
authorArmin Ronacher <armin.ronacher@active-4.com>
Tue, 15 Apr 2008 20:10:46 +0000 (22:10 +0200)
committerArmin Ronacher <armin.ronacher@active-4.com>
Tue, 15 Apr 2008 20:10:46 +0000 (22:10 +0200)
--HG--
branch : trunk

jinja2/runtime.py

index d3864b863c5d48daf8a0ac681c8b5065b4cddbce..70ef9d8f1abd1b5ff20517ceccb177f2525c19d8 100644 (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)