diff options
author | Lance Stout <lancestout@gmail.com> | 2012-03-19 14:06:36 -0700 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2012-03-19 14:06:36 -0700 |
commit | 3acc7d0914eb1ad883caf6a39685a807a17ba75c (patch) | |
tree | 69d0f4b23db5ef9955cb6de4971b61a968615920 /sleekxmpp/plugins/xep_0009/binding.py | |
parent | b077ef91502c2e723afe5e0130c85103b0118648 (diff) | |
parent | 31d3e3b2b640e210e577eaa01c292c92be84d953 (diff) | |
download | slixmpp-3acc7d0914eb1ad883caf6a39685a807a17ba75c.tar.gz slixmpp-3acc7d0914eb1ad883caf6a39685a807a17ba75c.tar.bz2 slixmpp-3acc7d0914eb1ad883caf6a39685a807a17ba75c.tar.xz slixmpp-3acc7d0914eb1ad883caf6a39685a807a17ba75c.zip |
Merge pull request #150 from correl/rpc_value_fixes
Updated XEP-0009 to handle unicode strings
Diffstat (limited to 'sleekxmpp/plugins/xep_0009/binding.py')
-rw-r--r-- | sleekxmpp/plugins/xep_0009/binding.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sleekxmpp/plugins/xep_0009/binding.py b/sleekxmpp/plugins/xep_0009/binding.py index 2b16a0c0..5418626b 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) |