IrcClient.py:IrcClient.connect(): explicitly pass encoding="utf-8" to clientSocket.makeFile().

This commit is contained in:
Lucio Andrés Illanes Albornoz 2018-01-06 16:38:20 +01:00
parent d93e1fecda
commit 0259662a4e

View File

@ -52,7 +52,7 @@ class IrcClient:
self.close(); return False;
else:
select.select([], [self.clientSocket.fileno()], [])
self.clientSocketFile = self.clientSocket.makefile()
self.clientSocketFile = self.clientSocket.makefile(encoding="utf-8")
self.clientQueue = []
self.queue("NICK", self.clientNick)
self.queue("USER", self.clientIdent, "0", "0", self.clientGecos)