At 10:08 PM 2/9/2011 +0200, cool-RR wrote: >Do you think that source_string.replace('\r', '') would work? If you know that it's all \r\n newlines, sure. But then why not just .rstrip('\r') the lines you read? Or .replace('\r\n', '\n')?