Encoding str from utf-8 before sending to socket - correction
parent
85a90e47db
commit
27d47ba3d0
|
|
@ -795,7 +795,7 @@ class ServerConnection(Connection):
|
||||||
print "TO SERVER:", string
|
print "TO SERVER:", string
|
||||||
except socket.error, x:
|
except socket.error, x:
|
||||||
# Ouch!
|
# Ouch!
|
||||||
self.disconnect(u'Connection reset by peer.')
|
self.disconnect("Connection reset by peer.")
|
||||||
|
|
||||||
def squit(self, server, comment=""):
|
def squit(self, server, comment=""):
|
||||||
"""Send an SQUIT command."""
|
"""Send an SQUIT command."""
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue