]> jfr.im git - z_archive/twitter.git/commitdiff
use non timeout mode for all streams in the sample tester
authorRouxRC <redacted>
Sun, 16 Feb 2014 19:26:20 +0000 (20:26 +0100)
committerRouxRC <redacted>
Sun, 16 Feb 2014 19:26:20 +0000 (20:26 +0100)
twitter/stream_example.py

index 2888aced4c05e8681ab5bca63c1dcc640e991699..8f5da3a64e6e2f38ea71bcbe8e2db0b81c244c37 100644 (file)
@@ -46,7 +46,7 @@ def main():
         stream = TwitterStream(auth=auth, domain='sitestream.twitter.com')
         tweet_iter = stream.site()
     else:
-        stream = TwitterStream(auth=auth, timeout=60.0)
+        stream = TwitterStream(auth=auth)
         tweet_iter = stream.statuses.sample()
 
     # Iterate over the sample stream.