fixed bug #5779 - error with + in package names

This commit is contained in:
pjmattal 2007-02-11 21:56:33 +00:00
parent 723f1afde8
commit a19d27a70a
2 changed files with 2 additions and 2 deletions

View file

@ -62,7 +62,7 @@ class ClientSocket:
def sendMsg(self, msg): def sendMsg(self, msg):
if type(msg) == dict: if type(msg) == dict:
msg = urllib.unquote(urllib.urlencode(msg,1)) msg = urllib.urlencode(msg,1)
length = struct.pack("H", socket.htons(len(msg))) length = struct.pack("H", socket.htons(len(msg)))
self.socket.sendall(length) self.socket.sendall(length)
self.socket.sendall(msg) self.socket.sendall(msg)

View file

@ -92,7 +92,7 @@ class ClientSocket(threading.Thread):
def sendMsg(self, msg): def sendMsg(self, msg):
if type(msg) == dict: if type(msg) == dict:
msg = urllib.unquote(urllib.urlencode(msg,1)) msg = urllib.urlencode(msg,1)
length = struct.pack("H", socket.htons(len(msg))) length = struct.pack("H", socket.htons(len(msg)))
self.socket.sendall(length) self.socket.sendall(length)
self.socket.sendall(msg) self.socket.sendall(msg)