Splitting a string separated by "\r\n" into a list of lines?

Viewed 38004

I am reading in some data from the subprocess module's communicate method. It is coming in as a large string separated by "\r\n"s. I want to split this into a list of lines. How is this performed in python?

3 Answers
Related