From 60d9ce5c83222610a66f9dd862bba40974eb211a Mon Sep 17 00:00:00 2001 From: Dmitry Moiseev Date: Sat, 11 Jan 2014 09:05:15 -0800 Subject: Dirty hack for lightblue. Should be done throught proper deserilization of recv data in future. --- ParrotZik.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ParrotZik.py b/ParrotZik.py index 5a26b52..8a2fca6 100644 --- a/ParrotZik.py +++ b/ParrotZik.py @@ -134,7 +134,10 @@ class ParrotZik(object): except: self.sock ="" return - data = self.sock.recv(7) + if sys.platform == "darwin": + data = self.sock.recv(30) + else: + data = self.sock.recv(7) data = self.sock.recv(1024) data=BeautifulSoup(data) return data -- cgit v1.2.1