SF.net SVN: fclient:[725] trunk/fclient/src/fclient/lib/fcp2/iohandler.py
Status: Pre-Alpha
Brought to you by:
jurner
|
From: <jU...@us...> - 2008-07-25 07:09:27
|
Revision: 725
http://fclient.svn.sourceforge.net/fclient/?rev=725&view=rev
Author: jUrner
Date: 2008-07-25 07:09:37 +0000 (Fri, 25 Jul 2008)
Log Message:
-----------
unicode
Modified Paths:
--------------
trunk/fclient/src/fclient/lib/fcp2/iohandler.py
Modified: trunk/fclient/src/fclient/lib/fcp2/iohandler.py
===================================================================
--- trunk/fclient/src/fclient/lib/fcp2/iohandler.py 2008-07-25 07:09:13 UTC (rev 724)
+++ trunk/fclient/src/fclient/lib/fcp2/iohandler.py 2008-07-25 07:09:37 UTC (rev 725)
@@ -120,13 +120,13 @@
self.close()
raise consts.ErrorIOBroken(details, consts.ConstLogger.IO.error)
else:
- return p
+ return p.decode('utf-8')
def write(self, bytes):
try:
totalSend = 0
while totalSend < len(bytes):
- n = self.socket.send(bytes[totalSend: ])
+ n = self.socket.send(bytes[totalSend: ].encode('utf-8'))
totalSend += n
except socket.error, details:
self.close()
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|