diff options
author | Nathan Fritz <fritzy@netflint.net> | 2010-02-25 01:12:15 +0000 |
---|---|---|
committer | Nathan Fritz <fritzy@netflint.net> | 2010-02-25 01:12:15 +0000 |
commit | e06cdec81ae8732b496acdbb3e86ad8ef7afe640 (patch) | |
tree | 0bd8944a53b70adf7b1246dd07c3a09a5eb26d07 /sleekxmpp/basexmpp.py | |
parent | 7d41d68293eee153ed037ce31b2c642b8857c8e3 (diff) | |
download | slixmpp-e06cdec81ae8732b496acdbb3e86ad8ef7afe640.tar.gz slixmpp-e06cdec81ae8732b496acdbb3e86ad8ef7afe640.tar.bz2 slixmpp-e06cdec81ae8732b496acdbb3e86ad8ef7afe640.tar.xz slixmpp-e06cdec81ae8732b496acdbb3e86ad8ef7afe640.zip |
fixed some unicode problems for 2.6
Diffstat (limited to 'sleekxmpp/basexmpp.py')
-rw-r--r-- | sleekxmpp/basexmpp.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sleekxmpp/basexmpp.py b/sleekxmpp/basexmpp.py index 26e513a4..92f1f9a6 100644 --- a/sleekxmpp/basexmpp.py +++ b/sleekxmpp/basexmpp.py @@ -39,6 +39,13 @@ from . stanza.error import Error import logging import threading +import sys + +if sys.version_info < (3,0): + reload(sys) + sys.setdefaultencoding('utf8') + + def stanzaPlugin(stanza, plugin): stanza.plugin_attrib_map[plugin.plugin_attrib] = plugin stanza.plugin_tag_map["{%s}%s" % (plugin.namespace, plugin.name)] = plugin |