Fixes for tweepy/tweepy issue #208
authorinactivist <inactivist@gmail.com>
Fri, 21 Sep 2012 15:05:41 +0000 (08:05 -0700)
committerinactivist <inactivist@gmail.com>
Fri, 21 Sep 2012 15:05:41 +0000 (08:05 -0700)
(https://github.com/tweepy/tweepy/issues/208)
 merged from origin/http_dumper branch...

tweepy/streaming.py

index 3e6910f8f706b61ad603fc0b8220c6df6c350675..db5a1f7bce79d6b23e33a46b8a99ecffc18f2372 100644 (file)
@@ -135,9 +135,8 @@ class Stream(object):
             raise
 
     def _data(self, data):
-        for d in [dt for dt in data.split('\n') if dt]:
-            if self.listener.on_data(d) is False:
-                self.running = False
+        if self.listener.on_data(d) is False:
+            self.running = False
 
     def _read_loop(self, resp):