Procházet zdrojové kódy

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

Jadjay před 10 roky
rodič
revize
27d47ba3d0
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      irclib.py

+ 1 - 1
irclib.py Zobrazit soubor

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."""