]> jfr.im git - z_archive/twitter.git/commitdiff
Clarify the comment about edge cases.
authorAndrew W. Donoho <redacted>
Wed, 29 Jan 2014 22:00:56 +0000 (16:00 -0600)
committerAndrew W. Donoho <redacted>
Wed, 29 Jan 2014 22:00:56 +0000 (16:00 -0600)
twitter/stream.py

index 44fd1052459106bf9f0c71878c62d855a25655ff..8a64224697d76d258e99b6d71164be91d309155b 100644 (file)
@@ -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)