From e28728278246b2f73e86969cfdb881d9ef17a51e Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Sun, 11 Mar 2012 18:40:30 -0700 Subject: Moving backwards compatibility shims to __init__ files. --- sleekxmpp/plugins/xep_0059/__init__.py | 10 +++++++++- sleekxmpp/plugins/xep_0059/rsm.py | 5 ----- 2 files changed, 9 insertions(+), 6 deletions(-) (limited to 'sleekxmpp/plugins/xep_0059') diff --git a/sleekxmpp/plugins/xep_0059/__init__.py b/sleekxmpp/plugins/xep_0059/__init__.py index 3a9b8edf..3464ce32 100644 --- a/sleekxmpp/plugins/xep_0059/__init__.py +++ b/sleekxmpp/plugins/xep_0059/__init__.py @@ -6,5 +6,13 @@ See the file LICENSE for copying permission. """ +from sleekxmpp.plugins.base import register_plugin + from sleekxmpp.plugins.xep_0059.stanza import Set -from sleekxmpp.plugins.xep_0059.rsm import ResultIterator, xep_0059 +from sleekxmpp.plugins.xep_0059.rsm import ResultIterator, XEP_0059 + + +register_plugin(XEP_0059) + +# Retain some backwards compatibility +xep_0059 = XEP_0059 diff --git a/sleekxmpp/plugins/xep_0059/rsm.py b/sleekxmpp/plugins/xep_0059/rsm.py index a28bc7ee..9335ed22 100644 --- a/sleekxmpp/plugins/xep_0059/rsm.py +++ b/sleekxmpp/plugins/xep_0059/rsm.py @@ -129,8 +129,3 @@ class XEP_0059(BasePlugin): the interface 'disco_items' should be used. """ return ResultIterator(stanza, interface) - - -register_plugin(XEP_0059) - -xep_0059 = XEP_0059 -- cgit v1.2.3