From 6ba53cf1ff49025d9aab5f133aa9f0e2c33fe0e1 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Tue, 20 Sep 2016 15:59:04 +0900 Subject: ElementBase: Remove attrib interface. --- slixmpp/xmlstream/stanzabase.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/slixmpp/xmlstream/stanzabase.py b/slixmpp/xmlstream/stanzabase.py index e3926bfb..612acd93 100644 --- a/slixmpp/xmlstream/stanzabase.py +++ b/slixmpp/xmlstream/stanzabase.py @@ -1280,20 +1280,6 @@ class ElementBase(object): if attr in self.xml.attrib: del self.xml.attrib[attr] - @property - def attrib(self): - """Return the stanza object itself. - - Older implementations of stanza objects used XML objects directly, - requiring the use of ``.attrib`` to access attribute values. - - Use of the dictionary syntax with the stanza object itself for - accessing stanza interfaces is preferred. - - .. deprecated:: 1.0 - """ - return self - def _fix_ns(self, xpath, split=False, propagate_ns=True): return fix_ns(xpath, split=split, propagate_ns=propagate_ns, -- cgit v1.2.3