From 1f5a3a444521e67afc7036cfd8f8e98fee982141 Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Sun, 11 Mar 2012 21:15:01 -0700 Subject: Move XEP-0047 to new system. --- sleekxmpp/plugins/xep_0047/stanza.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sleekxmpp/plugins/xep_0047/stanza.py') diff --git a/sleekxmpp/plugins/xep_0047/stanza.py b/sleekxmpp/plugins/xep_0047/stanza.py index fb0d4309..afba07a8 100644 --- a/sleekxmpp/plugins/xep_0047/stanza.py +++ b/sleekxmpp/plugins/xep_0047/stanza.py @@ -2,7 +2,7 @@ import re import base64 from sleekxmpp.exceptions import XMPPError -from sleekxmpp.xmlstream import register_stanza_plugin, ET, ElementBase +from sleekxmpp.xmlstream import ElementBase from sleekxmpp.thirdparty.suelta.util import bytes @@ -12,6 +12,7 @@ VALID_B64 = re.compile(r'[A-Za-z0-9\+\/]*=*') def to_b64(data): return bytes(base64.b64encode(bytes(data))).decode('utf-8') + def from_b64(data): return bytes(base64.b64decode(bytes(data))).decode('utf-8') -- cgit v1.2.3