Use “yield” in get_all_lines() instead of collecting all lines in an array

Alexandre Oliva> Its only use is as a loop generator, so you might as
Alexandre Oliva> well ditch all_lines and yield each full line as you
Alexandre Oliva> build it, like: