On Sun, Oct 11, 2009 at 10:33 PM, Vineet Kothari <[email protected]>wrote:
> Hi Everyone > > I see that python IDLE add ^M as carriage return while programming in > windows machine. How can I set IDLE not to do so. I don't see any option & > neither do I see any option to check for carriage return. > > Can anyone help me as I use IDLE & I need to remove ^M from the end of > every line. Though it is not shown while programming but I can see that when > I run my scripts on debian linux environment & thus get errors. > > That's not an issue with IDLE so much as windows/linux. IIRC, Linux only uses a newline, while windows uses a CRLF. There's the dos2unix util: http://linuxcommand.org/man_pages/dos2unix1.html that may help. -Wayne
_______________________________________________ Tutor maillist - [email protected] To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
