<div class="gmail_quote">On Sun, Oct 11, 2009 at 10:33 PM, Vineet Kothari <span dir="ltr">&lt;<a href="mailto:vineet.kothari@gmail.com">vineet.kothari@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Hi Everyone<br><br>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&#39;t see any option &amp; neither do I see any option to check for carriage return.<br>


<br>Can anyone help me as I use IDLE &amp; 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 &amp; thus get errors. <br>

<br></blockquote><div><br></div><div>That&#39;s not an issue with IDLE so much as windows/linux. IIRC, Linux only uses a newline, while windows uses a CRLF. There&#39;s the dos2unix util: </div><div><br></div><div><a href="http://linuxcommand.org/man_pages/dos2unix1.html">http://linuxcommand.org/man_pages/dos2unix1.html</a></div>

<div><br></div><div>that may help.</div><div>-Wayne</div><div><br></div></div>