[Pythonmac-SIG] Line endings and readline()

Andrew Watson awatson@bigfoot.com
Tue, 05 Sep 2000 19:39:37 +0800


I am trying to run a macpython script on a linux box, but when I try and
readline() from a saved text file, it gets confused about line endings ( the
text files are generated on a mac ).

Is there some easy way of convincing python to change what it expects as the
end-of-line character, to deal with this sort of crodd-platform problem?

Andrew Watson