]> jfr.im git - z_archive/twitter.git/commitdiff
revert to regular no yield in timeout mode until further non-blocking+timeout option
authorRouxRC <redacted>
Sun, 16 Feb 2014 19:38:28 +0000 (20:38 +0100)
committerRouxRC <redacted>
Sun, 16 Feb 2014 19:38:28 +0000 (20:38 +0100)
twitter/stream.py

index a8ac54d1490bba6efee5721fcb9ee138c0b2a4ba..a0df98e61408583a13f5368ee0356a6cbab620fb 100644 (file)
@@ -70,7 +70,7 @@ class TwitterJSONIter(object):
                 yield wrap_response(res, self.handle.headers)
                 continue
             except ValueError as e:
-                if self.block and not self.timeout: pass
+                if self.block: pass
                 else: yield None
             try:
                 buf = buf.lstrip()  # Remove any keep-alive delimiters to detect hangups.