aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Moiseev <m0sia@m0sia.ru>2014-01-11 09:05:15 -0800
committerDmitry Moiseev <m0sia@m0sia.ru>2014-01-11 09:05:15 -0800
commit60d9ce5c83222610a66f9dd862bba40974eb211a (patch)
tree1658c703474a6676a9629fbb24bad40244dd1205
parent39eb2669b37ac6cae34e6d57b002c865619cd98c (diff)
downloadpyParrotZikTCP-60d9ce5c83222610a66f9dd862bba40974eb211a.tar.xz
pyParrotZikTCP-60d9ce5c83222610a66f9dd862bba40974eb211a.zip
Dirty hack for lightblue. Should be done throught proper deserilization of recv data in future.
Diffstat (limited to '')
-rw-r--r--ParrotZik.py5
1 files changed, 4 insertions, 1 deletions
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