From afe0d16797db0d895c8779d378cb9ca1a6a7f39c Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Sun, 19 Feb 2012 20:26:40 -0800 Subject: Centralize references to ET to make switching implementations easier. --- sleekxmpp/plugins/xep_0009/binding.py | 2 +- 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 -- cgit v1.2.3