summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2012-02-19 20:26:40 -0800
committerLance Stout <lancestout@gmail.com>2012-02-19 20:26:40 -0800
commitafe0d16797db0d895c8779d378cb9ca1a6a7f39c (patch)
treebd6c436a1291a0f171d083cc03432bbeb6bac4a3
parent977fcc06324d93422cb19e1550b280cd04e36f82 (diff)
downloadslixmpp-afe0d16797db0d895c8779d378cb9ca1a6a7f39c.tar.gz
slixmpp-afe0d16797db0d895c8779d378cb9ca1a6a7f39c.tar.bz2
slixmpp-afe0d16797db0d895c8779d378cb9ca1a6a7f39c.tar.xz
slixmpp-afe0d16797db0d895c8779d378cb9ca1a6a7f39c.zip
Centralize references to ET to make switching implementations easier.
-rw-r--r--sleekxmpp/plugins/xep_0009/binding.py2
-rw-r--r--sleekxmpp/plugins/xep_0009/rpc.py3
2 files changed, 2 insertions, 3 deletions
diff --git a/sleekxmpp/plugins/xep_0009/binding.py b/sleekxmpp/plugins/xep_0009/binding.py
index b4395707..2b16a0c0 100644
--- a/sleekxmpp/plugins/xep_0009/binding.py
+++ b/sleekxmpp/plugins/xep_0009/binding.py
@@ -6,7 +6,7 @@
See the file LICENSE for copying permission.
"""
-from xml.etree import cElementTree as ET
+from sleekxmpp.xmlstream import ET
import base64
import logging
import time
diff --git a/sleekxmpp/plugins/xep_0009/rpc.py b/sleekxmpp/plugins/xep_0009/rpc.py
index 4f749f30..986a42e7 100644
--- a/sleekxmpp/plugins/xep_0009/rpc.py
+++ b/sleekxmpp/plugins/xep_0009/rpc.py
@@ -11,8 +11,7 @@ from sleekxmpp.plugins.xep_0009.stanza.RPC import RPCQuery, MethodCall, MethodRe
from sleekxmpp.stanza.iq import Iq
from sleekxmpp.xmlstream.handler.callback import Callback
from sleekxmpp.xmlstream.matcher.xpath import MatchXPath
-from sleekxmpp.xmlstream.stanzabase import register_stanza_plugin
-from xml.etree import cElementTree as ET
+from sleekxmpp.xmlstream.stanzabase import register_stanza_plugin, ET
import logging