Moved unicode/str conversions to sessionhandler level in order to still allow message_all session messages without triggering unicode tracebacks (such as when server restarts).

This commit is contained in:
Griatch 2014-09-10 09:33:44 +02:00
parent a749f0c5ca
commit c4c662b33e
3 changed files with 13 additions and 9 deletions

View file

@ -1105,7 +1105,7 @@ class lazy_property(object):
_STRIP_ANSI = None
_RE_CONTROL_CHAR = re.compile('[%s]' % re.escape(''.join([unichr(c) for c in range(0,32)])))# + range(127,160)])))
def escape_control_sequences(string):
def strip_control_sequences(string):
"""
remove non-print text sequences from string.
"""