diff options
author | Nathan Fritz <fritzy@netflint.net> | 2010-02-27 02:02:08 +0000 |
---|---|---|
committer | Nathan Fritz <fritzy@netflint.net> | 2010-02-27 02:02:08 +0000 |
commit | 8d5dbfa691f17118173d4eaeca8222826e6a6dc5 (patch) | |
tree | c2e9ff325c65e00c35c57af1d4783a73bb01d0b6 /example.py | |
parent | e06cdec81ae8732b496acdbb3e86ad8ef7afe640 (diff) | |
download | slixmpp-8d5dbfa691f17118173d4eaeca8222826e6a6dc5.tar.gz slixmpp-8d5dbfa691f17118173d4eaeca8222826e6a6dc5.tar.bz2 slixmpp-8d5dbfa691f17118173d4eaeca8222826e6a6dc5.tar.xz slixmpp-8d5dbfa691f17118173d4eaeca8222826e6a6dc5.zip |
fixed some presence bugs
Diffstat (limited to 'example.py')
-rw-r--r-- | example.py | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -5,8 +5,12 @@ import logging from optparse import OptionParser import time -reload(sys) -sys.setdefaultencoding('utf8') +import sys + +if sys.version_info < (3,0): + reload(sys) + sys.setdefaultencoding('utf8') + class Example(sleekxmpp.ClientXMPP): |