Convert \r text to \n so readlines() works as intended
f = open('file.txt','rU')
This opens the file with Python's universal newline support and \r
is treated as an end-of-line.
f = open('file.txt','rU')
This opens the file with Python's universal newline support and \r
is treated as an end-of-line.