Return list without newlines character

For better display like `salt '*' ip.get_interface eth0`
Merge pull request #10923 from pengyao/readlines

Return list without newlines character