Update tweepy/streaming.py
authorSteve Jones <steve.r.jones@gmail.com>
Tue, 17 Apr 2012 01:57:39 +0000 (22:57 -0300)
committerSteve Jones <steve.r.jones@gmail.com>
Tue, 17 Apr 2012 01:57:39 +0000 (22:57 -0300)
tweepy/streaming.py

index e9d6d669a85699bed347c64d54be08d3fa457172..9ee74cd73b298b9fbf040e850f86dc7fdc36186f 100644 (file)
@@ -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():