Re: [PythonCE] line-endings problem with PythonCE

2005-02-07 Thread Michael Foord
This is because many python files are saved with UNIX line endings instead of windows ones. The easiest solution is simply to get python to open them and then write them back out again. handle = open(filename, 'r') thefile = handle.read() handle.close() open(filename, 'w')..write(thefile) will

[PythonCE] line-endings problem with PythonCE

2005-02-06 Thread Stewart Midwinter
I've noticed that many of the python files that I edit on the desktop (or even most of those that I don't), when brought over the Pocket PC and opened in Tillanosoft Notepad or Total Commander's editor, have line endings that are recognized. Instead, there's a square symbol and the line does not br