What's a quick one-liner to remove empty lines from a python string?,text = os.linesep.join([s for s in text.splitlines() if s])