Unregister should remove the node from the cache as well.

This commit is contained in:
Jeremy Fincher 2004-08-05 18:47:03 +00:00
parent 3fc03d2fa5
commit 50c8cfaf26
1 changed files with 2 additions and 0 deletions

View File

@ -217,6 +217,8 @@ class Group(object):
node = self.children[name]
del self.children[name]
self.added.remove(name)
if node._name in _cache:
del _cache[node._name]
return node
except KeyError:
self.__nonExistentEntry(name)