summaryrefslogtreecommitdiff
path: root/example.py
diff options
context:
space:
mode:
authorNathan Fritz <fritzy@netflint.net>2010-02-25 01:12:15 +0000
committerNathan Fritz <fritzy@netflint.net>2010-02-25 01:12:15 +0000
commite06cdec81ae8732b496acdbb3e86ad8ef7afe640 (patch)
tree0bd8944a53b70adf7b1246dd07c3a09a5eb26d07 /example.py
parent7d41d68293eee153ed037ce31b2c642b8857c8e3 (diff)
downloadslixmpp-e06cdec81ae8732b496acdbb3e86ad8ef7afe640.tar.gz
slixmpp-e06cdec81ae8732b496acdbb3e86ad8ef7afe640.tar.bz2
slixmpp-e06cdec81ae8732b496acdbb3e86ad8ef7afe640.tar.xz
slixmpp-e06cdec81ae8732b496acdbb3e86ad8ef7afe640.zip
fixed some unicode problems for 2.6
Diffstat (limited to 'example.py')
-rw-r--r--example.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/example.py b/example.py
index bba31a8f..71979c56 100644
--- a/example.py
+++ b/example.py
@@ -1,8 +1,13 @@
+# coding=utf8
+
import sleekxmpp
import logging
from optparse import OptionParser
import time
+reload(sys)
+sys.setdefaultencoding('utf8')
+
class Example(sleekxmpp.ClientXMPP):
def __init__(self, jid, password):