def linereader(f):
 while 1:
  line = f.readline()
  if (not line):
   break
  (yield line[:(-1)])

def linereader ( f ) : while 1 : line = f . readline ( ) if ( not line ) : break ( yield line [ : ( - 1 ) ] )
generate a list of input lines from f without terminating newlines .