diff options
Diffstat (limited to 'examples/set_avatar.py')
-rw-r--r-- | examples/set_avatar.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/set_avatar.py b/examples/set_avatar.py index ec32a7c4..cae93c99 100644 --- a/examples/set_avatar.py +++ b/examples/set_avatar.py @@ -26,8 +26,8 @@ from sleekxmpp.exceptions import XMPPError # 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 |