diff options
Diffstat (limited to 'examples/register_account.py')
-rw-r--r-- | examples/register_account.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/register_account.py b/examples/register_account.py index 20377b26..bd9b1160 100644 --- a/examples/register_account.py +++ b/examples/register_account.py @@ -22,8 +22,8 @@ from sleekxmpp.exceptions import IqError, IqTimeout # 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 |