Migrate to 3.4
This commit is contained in:
parent
9a80988e26
commit
e108c8a12a
1 changed files with 1 additions and 2 deletions
|
|
@ -6,7 +6,6 @@ import six
|
||||||
import socket
|
import socket
|
||||||
import time
|
import time
|
||||||
import websocket
|
import websocket
|
||||||
from itertools import izip
|
|
||||||
|
|
||||||
from .exceptions import SocketIOError, ConnectionError, TimeoutError
|
from .exceptions import SocketIOError, ConnectionError, TimeoutError
|
||||||
|
|
||||||
|
|
@ -295,7 +294,7 @@ def _negotiate_transport(
|
||||||
|
|
||||||
def _yield_text_from_framed_data(framed_data, parse=lambda x: x):
|
def _yield_text_from_framed_data(framed_data, parse=lambda x: x):
|
||||||
parts = [parse(x) for x in framed_data.split(BOUNDARY)]
|
parts = [parse(x) for x in framed_data.split(BOUNDARY)]
|
||||||
for text_length, text in izip(parts[1::2], parts[2::2]):
|
for text_length, text in zip(parts[1::2], parts[2::2]):
|
||||||
if text_length != str(len(text)):
|
if text_length != str(len(text)):
|
||||||
warning = 'invalid declared length=%s for packet_text=%s' % (
|
warning = 'invalid declared length=%s for packet_text=%s' % (
|
||||||
text_length, text)
|
text_length, text)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue