Angus Leeming wrote: > Rather than specify '\r\n' explicitly, isn't there a version of strip that > removes all trailing whitespace?
Simply remove the extra argument. It is actually more portable, since the extra argument was introduced in some 2.x version. > Or, alternatively, isn't there an > os.environment.newline variable or somesuch. It is called os.linesep: http://docs.python.org/lib/os-path.html > Angus (who doesn't like hard coding nastiness ;-P) Want to take part in a purist contest? You would be in good company ;-) Georg
