def parseLines(chunk):
 items = {}
 for (lineno, line) in chunk:
  (header, data) = line.split(':', 1)
  header = header.lower()
  items[header] = (lineno, data.strip())
 return items

def parseLines ( chunk ) : items = { } for ( lineno , line ) in chunk : ( header , data ) = line . split ( ':' , 1 ) header = header . lower ( ) items [ header ] = ( lineno , data . strip ( ) ) return items
take the given chunk of lines and turn it into a test data dictionary [] -> {str:} .