From: Joshua Roesslein Date: Mon, 9 Jul 2012 05:51:27 +0000 (-0700) Subject: Fix streaming to properly parse next object length. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=1b73470e22144ef287ca3a5113bcc24ea9503fae;p=tweepy.git Fix streaming to properly parse next object length. --- diff --git a/tweepy/streaming.py b/tweepy/streaming.py index 13f7b2a..2d76a97 100644 --- a/tweepy/streaming.py +++ b/tweepy/streaming.py @@ -157,7 +157,7 @@ class Stream(object): delimited_string += d # read the next twitter status object - if delimited_string.isdigit(): + if delimited_string.strip().isdigit(): next_status_obj = resp.read( int(delimited_string) ) self._data(next_status_obj)