Fix remove_stanza().

Fixes issue #146
This commit is contained in:
Lance Stout 2012-02-16 07:02:19 -08:00
parent 61ea84093b
commit 6d922d00c3

View file

@ -769,7 +769,7 @@ class XMLStream(object):
stanza objects, but may still be processed using handlers and
matchers.
"""
del self.__root_stanza[stanza_class]
del self.__root_stanza.remove(stanza_class)
def add_filter(self, mode, handler, order=None):
"""Add a filter for incoming or outgoing stanzas.