summaryrefslogtreecommitdiff
path: root/sleekxmpp/plugins/xep_0047/stanza.py
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2012-03-11 21:15:01 -0700
committerLance Stout <lancestout@gmail.com>2012-03-12 19:32:19 -0700
commit1f5a3a444521e67afc7036cfd8f8e98fee982141 (patch)
tree9ae162795ed3e85fb22f48aabab7a6cc8d0d2d91 /sleekxmpp/plugins/xep_0047/stanza.py
parentbe363e0b46681125a54e2d96f70c0c259216fee1 (diff)
downloadslixmpp-1f5a3a444521e67afc7036cfd8f8e98fee982141.tar.gz
slixmpp-1f5a3a444521e67afc7036cfd8f8e98fee982141.tar.bz2
slixmpp-1f5a3a444521e67afc7036cfd8f8e98fee982141.tar.xz
slixmpp-1f5a3a444521e67afc7036cfd8f8e98fee982141.zip
Move XEP-0047 to new system.
Diffstat (limited to 'sleekxmpp/plugins/xep_0047/stanza.py')
-rw-r--r--sleekxmpp/plugins/xep_0047/stanza.py3
1 files changed, 2 insertions, 1 deletions
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')