From: Steve Jones Date: Tue, 17 Apr 2012 01:57:39 +0000 (-0300) Subject: Update tweepy/streaming.py X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=519994dc55e229805f48a49eb632e98ad541a0db;p=tweepy.git Update tweepy/streaming.py --- 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():