X-Git-Url: https://jfr.im/git/z_archive/twitter.git/blobdiff_plain/3e782f630283e9a9c1c9c5f809137b8ebe482823..861b9671a595eed351fd7961f01bd24cc865fcfc:/twitter/stream.py?ds=inline diff --git a/twitter/stream.py b/twitter/stream.py index 44fd105..8a64224 100644 --- a/twitter/stream.py +++ b/twitter/stream.py @@ -30,8 +30,8 @@ def recv_chunk(sock): # -> bytearray: chunk[:remaining] = buf[start:start + remaining] # There are several edge cases (remaining == [3-6]) as the chunk size exceeds the length # of the initial read of 8 bytes. With Twitter, these do not, in practice, occur. The - # shortest real message JSON starts with '{"limit":{'. Hence, it exceeds in size the - # edge cases and we do not need to address them. + # shortest JSON message starts with '{"limit":{'. Hence, it exceeds in size the edge cases + # and eliminates the need to address them. else: # There is more to read in the chunk. chunk[:end] = buf[start:] chunk[end:] = sock.recv(remaining - end)