So I have been working on a directory and have not really been able to get it off the ground. As a matter of fact none at all. import H:\Python Helpful Programs\DivisibleBy.py (also: everything is in the same folder) I have also tried just DivisibleBy.py and some others. The error returned is that "EOL while scanning string literal" Any tips or ideas?
|+0 forum 3|
Hi Folks, Windows/Python3.1.2 I'm totally at a loss with this one... The code is supposed to open a file (postscript with UNIX LF-only EOL characters), look for and change a line, then write the lines back. It works fine, except for the fact that I can't dissuade Python from writing CRLF as the EOL character, and the onward system that's taking it as an input won't read it with CRLF. I've tried to strip the EOL completely and explicitly write '/n', but it always adds the CR as well. I've tried stripping the lines, replacing '/r' with '', pretty much …
|+0 forum 2|