summaryrefslogtreecommitdiff
path: root/examples/send_client.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/send_client.py')
-rwxr-xr-xexamples/send_client.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/send_client.py b/examples/send_client.py
index 5b34bbc9..192469ae 100755
--- a/examples/send_client.py
+++ b/examples/send_client.py
@@ -21,8 +21,8 @@ import sleekxmpp
# throughout SleekXMPP, we will set the default encoding
# ourselves to UTF-8.
if sys.version_info < (3, 0):
- reload(sys)
- sys.setdefaultencoding('utf8')
+ from sleekxmpp.util.misc_ops import setdefaultencoding
+ setdefaultencoding('utf8')
else:
raw_input = input