def normalize_line_endings(lines, newline):
 return [(line.rstrip(u'\n\r') + newline) for line in lines]

def normalize_line_endings ( lines , newline ) : return [ ( line . rstrip ( u'\n\r' ) + newline ) for line in lines ]
return fixed line endings .