fix readline. With help form @davisp that reviewed my patch and make it better. Now it's possible to stream what you get (event twitter stream). Ex with couchdb :
fix readline. With help form @davisp that reviewed my patch and make it
better. Now it's possible to stream what you get (event twitter stream).
Ex with couchdb :

from restkit import *

r = request("http://localhost:5984/testdb/_changes?feed=continuous&heartbeat=true")

with r.body_stream() as body:
    for line in body:
        if not line: continue
        print line[:-1]

benoitc/restkit,openprocurement/restkit