Added handling of django's unicode insistance.
This commit is contained in:
parent
9c3ba7f025
commit
26beacb419
1 changed files with 2 additions and 0 deletions
|
|
@ -167,6 +167,8 @@ class SessionProtocol(StatefulTelnetProtocol):
|
||||||
"""
|
"""
|
||||||
Sends a message to the session.
|
Sends a message to the session.
|
||||||
"""
|
"""
|
||||||
|
if isinstance(message, unicode):
|
||||||
|
message = message.encode("utf-8")
|
||||||
self.sendLine("%s" % (message,))
|
self.sendLine("%s" % (message,))
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue