Use readline() on 2.x for fixup stream.