From d7758eb7f453ddcdb3325daf0c49047010af78f4 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Tue, 20 Sep 2016 15:58:56 +0900 Subject: ElementBase: Remove subitem interface. --- slixmpp/xmlstream/stanzabase.py | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/slixmpp/xmlstream/stanzabase.py b/slixmpp/xmlstream/stanzabase.py index c1f297ac..e3926bfb 100644 --- a/slixmpp/xmlstream/stanzabase.py +++ b/slixmpp/xmlstream/stanzabase.py @@ -379,20 +379,6 @@ class ElementBase(object): #: .. versionadded:: 1.0-Beta5 plugin_iterables = set() - #: A deprecated version of :attr:`plugin_iterables` that remains - #: for backward compatibility. It required a parent stanza to - #: know beforehand what stanza classes would be iterable:: - #: - #: class DiscoItem(ElementBase): - #: ... - #: - #: class DiscoInfo(ElementBase): - #: subitem = (DiscoItem, ) - #: ... - #: - #: .. deprecated:: 1.0-Beta5 - subitem = set() - #: The default XML namespace: ``http://www.w3.org/XML/1998/namespace``. xml_ns = XML_NS @@ -426,10 +412,6 @@ class ElementBase(object): else: self.parent = parent - if self.subitem is not None: - for sub in self.subitem: - self.plugin_iterables.add(sub) - if self.setup(xml): # If we generated our own XML, then everything is ready. return -- cgit v1.2.3