Tribler - fixed a typo in Connecter.py.
authorAdriana Draghici <adriana008@gmail.com>
Fri, 4 Dec 2009 12:43:07 +0000 (12:43 +0000)
committerAdriana Draghici <adriana008@gmail.com>
Fri, 4 Dec 2009 12:44:26 +0000 (12:44 +0000)
tribler-mod/Tribler/Core/BitTornado/BT1/Connecter.py

index 9331e4c..f4bf72d 100644 (file)
@@ -155,7 +155,7 @@ class Connection:
 
     def close(self):
         if DEBUG:
-            print >>sys.strderr, 'connection closed'
+            print >>sys.stderr, 'connection closed'
             if self.get_ip() == self.connecter.tracker_ip:
                 print >>sys.stderr, strftime("%d-%m-%Y %H:%M:%S", localtime())," ","connecter: close: live: WAAH closing SOURCE"
 
@@ -207,7 +207,7 @@ class Connection:
         self._send_message(CANCEL + tobinary(index) + 
             tobinary(begin) + tobinary(length))
         if DEBUG_NORMAL_MSGS:
-            print >>sys.strderr, 'sent cancel: '+str(index)+': '+str(begin)+'-'+str(begin+length)
+            print >>sys.stderr, 'sent cancel: '+str(index)+': '+str(begin)+'-'+str(begin+length)
 
     def send_bitfield(self, bitfield):
         self._send_message(BITFIELD + bitfield)
@@ -258,7 +258,7 @@ class Connection:
                             tobinary(len(piece) + 9), PIECE, 
                             tobinary(index), tobinary(begin), piece.tostring()))
             if DEBUG_NORMAL_MSGS:
-                print >>sys.strderr, 'sending chunk: '+str(index)+': '+str(begin)+'-'+str(begin+len(piece))
+                print >>sys.stderr, 'sending chunk: '+str(index)+': '+str(begin)+'-'+str(begin+len(piece))
 
         if bytes < len(self.partial_message):
             self.connection.send_message_raw(self.partial_message[:bytes])