[python] How to read a file without newlines?

temp = open(filename,'r').read().splitlines()