summaryrefslogtreecommitdiff
path: root/sleekxmpp/plugins/xep_0009/binding.py
diff options
context:
space:
mode:
authorCorrel Roush <correl@gmail.com>2012-02-17 12:24:44 -0500
committerCorrel Roush <correl@gmail.com>2012-02-17 12:24:44 -0500
commit31d3e3b2b640e210e577eaa01c292c92be84d953 (patch)
tree37b3e9621e936abc534e158cdcd2a1ef3464db32 /sleekxmpp/plugins/xep_0009/binding.py
parent79f1aa0e1ba7dd29bf597beeae924b96950f9416 (diff)
downloadslixmpp-31d3e3b2b640e210e577eaa01c292c92be84d953.tar.gz
slixmpp-31d3e3b2b640e210e577eaa01c292c92be84d953.tar.bz2
slixmpp-31d3e3b2b640e210e577eaa01c292c92be84d953.tar.xz
slixmpp-31d3e3b2b640e210e577eaa01c292c92be84d953.zip
Updated XEP-0009 to handle unicode strings
Diffstat (limited to 'sleekxmpp/plugins/xep_0009/binding.py')
-rw-r--r--sleekxmpp/plugins/xep_0009/binding.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sleekxmpp/plugins/xep_0009/binding.py b/sleekxmpp/plugins/xep_0009/binding.py
index b4395707..892fa67a 100644
--- a/sleekxmpp/plugins/xep_0009/binding.py
+++ b/sleekxmpp/plugins/xep_0009/binding.py
@@ -54,7 +54,7 @@ def _py2xml(*args):
boolean = ET.Element("{%s}boolean" % _namespace)
boolean.text = str(int(x))
val.append(boolean)
- elif type(x) is str:
+ elif type(x) in (str, unicode):
string = ET.Element("{%s}string" % _namespace)
string.text = x
val.append(string)