Browse Source

Merge d8782dc594 into 3cb904cfd8

pull/5/merge
fejesd 10 years ago
parent
commit
48869d827a
  1. 3
      socketio/packet.py

3
socketio/packet.py

@ -141,6 +141,7 @@ class Packet(object):
def _data_is_binary(self, data):
"""Check if the data contains binary components."""
try:
if isinstance(data, six.binary_type):
return True
elif isinstance(data, list):
@ -153,3 +154,5 @@ class Packet(object):
for item in six.itervalues(data)])
else:
return False
except TypeError:
return False

Loading…
Cancel
Save