From 519994dc55e229805f48a49eb632e98ad541a0db Mon Sep 17 00:00:00 2001 From: Steve Jones Date: Mon, 16 Apr 2012 22:57:39 -0300 Subject: [PATCH] Update tweepy/streaming.py --- tweepy/streaming.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tweepy/streaming.py b/tweepy/streaming.py index e9d6d66..9ee74cd 100644 --- a/tweepy/streaming.py +++ b/tweepy/streaming.py @@ -153,8 +153,10 @@ class Stream(object): delimited_string = c # read rest of delimiter length.. + d = '' while d != '\n' and self.running and not resp.isclosed(): - delimited_string += resp.read(1) + d = resp.read(1) + delimited_string += d # read the next twitter status object if delimited_string.isdigit(): -- 2.25.1