From 1b73470e22144ef287ca3a5113bcc24ea9503fae Mon Sep 17 00:00:00 2001 From: Joshua Roesslein Date: Sun, 8 Jul 2012 22:51:27 -0700 Subject: [PATCH] Fix streaming to properly parse next object length. --- tweepy/streaming.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.25.1