Browse Source

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

Jadjay 8 years ago
parent
commit
27d47ba3d0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      irclib.py

+ 1 - 1
irclib.py View File

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