summaryrefslogtreecommitdiff
path: root/slixmpp/xmlstream/stanzabase.py
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2016-09-20 16:45:29 +0900
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2016-09-20 16:45:29 +0900
commit3a9b45e4f279c430242f8d6f3ee7c9506ba0d208 (patch)
tree205a4d6e95af1a102facd9ddd42db887bffe1399 /slixmpp/xmlstream/stanzabase.py
parentb8e091233e152572786080f21cdc8d1b844912ed (diff)
downloadslixmpp-3a9b45e4f279c430242f8d6f3ee7c9506ba0d208.tar.gz
slixmpp-3a9b45e4f279c430242f8d6f3ee7c9506ba0d208.tar.bz2
slixmpp-3a9b45e4f279c430242f8d6f3ee7c9506ba0d208.tar.xz
slixmpp-3a9b45e4f279c430242f8d6f3ee7c9506ba0d208.zip
ElementBase: Remove deprecated find() and findall() methods.disco
Diffstat (limited to 'slixmpp/xmlstream/stanzabase.py')
-rw-r--r--slixmpp/xmlstream/stanzabase.py30
1 files changed, 0 insertions, 30 deletions
diff --git a/slixmpp/xmlstream/stanzabase.py b/slixmpp/xmlstream/stanzabase.py
index 612acd93..24e4e3ef 100644
--- a/slixmpp/xmlstream/stanzabase.py
+++ b/slixmpp/xmlstream/stanzabase.py
@@ -1123,36 +1123,6 @@ class ElementBase(object):
# Everything matched.
return True
- def find(self, xpath):
- """Find an XML object in this stanza given an XPath expression.
-
- Exposes ElementTree interface for backwards compatibility.
-
- .. note::
-
- Matching on attribute values is not supported in Python 2.6
- or Python 3.1
-
- :param string xpath: An XPath expression matching a single
- desired element.
- """
- return self.xml.find(xpath)
-
- def findall(self, xpath):
- """Find multiple XML objects in this stanza given an XPath expression.
-
- Exposes ElementTree interface for backwards compatibility.
-
- .. note::
-
- Matching on attribute values is not supported in Python 2.6
- or Python 3.1.
-
- :param string xpath: An XPath expression matching multiple
- desired elements.
- """
- return self.xml.findall(xpath)
-
def get(self, key, default=None):
"""Return the value of a stanza interface.