diff options
author | Lance Stout <lancestout@gmail.com> | 2012-02-19 20:26:40 -0800 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2012-02-19 20:26:40 -0800 |
commit | afe0d16797db0d895c8779d378cb9ca1a6a7f39c (patch) | |
tree | bd6c436a1291a0f171d083cc03432bbeb6bac4a3 | |
parent | 977fcc06324d93422cb19e1550b280cd04e36f82 (diff) | |
download | slixmpp-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.py | 2 | ||||
-rw-r--r-- | sleekxmpp/plugins/xep_0009/rpc.py | 3 |
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
|