Remove to_unicode.

This commit is contained in:
Ryan Stein 2017-11-03 12:36:45 -04:00
parent 7d524ac328
commit 6f91e1e546
15 changed files with 23 additions and 70 deletions

View file

@ -46,7 +46,7 @@ from django.conf import settings
from evennia.commands.command import InterruptCommand
from evennia.comms.channelhandler import CHANNELHANDLER
from evennia.utils import logger, utils
from evennia.utils.utils import string_suggestions, to_unicode
from evennia.utils.utils import string_suggestions
from django.utils.translation import ugettext as _
@ -618,8 +618,6 @@ def cmdhandler(called_by, raw_string, _testing=False, callertype="session", sess
finally:
_COMMAND_NESTING[called_by] -= 1
raw_string = to_unicode(raw_string, force_string=True)
session, account, obj = session, None, None
if callertype == "session":
session = called_by