summaryrefslogtreecommitdiff
path: root/examples/echo_component.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/echo_component.py')
-rwxr-xr-xexamples/echo_component.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/echo_component.py b/examples/echo_component.py
index 82f6eb9f..9a24f2fa 100755
--- a/examples/echo_component.py
+++ b/examples/echo_component.py
@@ -22,8 +22,8 @@ from sleekxmpp.componentxmpp import ComponentXMPP
# 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