浏览代码

Encoding str from utf-8 before sending to socket - correction

Jadjay 8 年前
父节点
当前提交
27d47ba3d0
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      irclib.py

+ 1 - 1
irclib.py 查看文件

@@ -795,7 +795,7 @@ class ServerConnection(Connection):
795 795
                 print "TO SERVER:", string
796 796
         except socket.error, x:
797 797
             # Ouch!
798
-            self.disconnect(u'Connection reset by peer.')
798
+            self.disconnect("Connection reset by peer.")
799 799
 
800 800
     def squit(self, server, comment=""):
801 801
         """Send an SQUIT command."""