Fix XEP-0065 imports and naming for Python3.

This commit is contained in:
Lance Stout 2012-06-10 14:15:58 -07:00
parent a7b092a305
commit f70b49882f
3 changed files with 5 additions and 4 deletions

View file

@ -27,6 +27,7 @@ __all__ = [
'xep_0054', # vcard-temp
'xep_0059', # Result Set Management
'xep_0060', # Pubsub (Client)
'xep_0065', # SOCKS5 Bytestreams
'xep_0066', # Out of Band Data
'xep_0077', # In-Band Registration
# 'xep_0078', # Non-SASL auth. Don't automatically load

View file

@ -1,5 +1,5 @@
from sleekxmpp.plugins.base import register_plugin
from sleekxmpp.plugins.xep_0065.proxy import xep_0065
from sleekxmpp.plugins.xep_0065.proxy import XEP_0065
register_plugin(xep_0065)
register_plugin(XEP_0065)

View file

@ -7,7 +7,7 @@ from hashlib import sha1
from select import select
from uuid import uuid4
import stanza
from sleekxmpp.plugins.xep_0065 import stanza
from sleekxmpp.plugins.base import base_plugin
from sleekxmpp.xmlstream.handler import Callback
@ -18,7 +18,7 @@ from sleekxmpp.thirdparty.socks import socksocket, PROXY_TYPE_SOCKS5
log = logging.getLogger(__name__)
class xep_0065(base_plugin):
class XEP_0065(base_plugin):
"""
XEP-0065 Socks5 Bytestreams
"""