Moving backwards compatibility shims to __init__ files.

This commit is contained in:
Lance Stout
2012-03-11 18:40:30 -07:00
parent 8b06d10415
commit e287282782
4 changed files with 22 additions and 17 deletions

View File

@@ -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

View File

@@ -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