tweepy/tweepy — pull request #173 by egw (2012-05-01 04:39:40+00:00)
Title: fixing streaming

Hi,

I have a couple of commits to fix streaming. I tracked down a bug in Stream._read_loop(). The problem was that "delimited_string.isdigit()" always returned False because Twitter sends "\r\n" at the end of line (which I believe is the http standard.) Anyhow, stripping the remaining "\r" off of delimited_string fixes it.

I also added a unit test for streaming (at least Stream.sample().) It's not a great (i.e. super-comprehensive) test, but it's good enough.

Cheers!
Eric